pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

DEPRECIATED Warning: sets option flow config_entry explicitly

Open Barrow1990 opened this issue 10 months ago • 4 comments

HA Version: 2025.1.2 Log Message: 2025-01-18 22:08:13.421 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'pyscript' sets option flow config_entry explicitly, which is deprecated at custom_components/pyscript/config_flow.py, line 29: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/custom-components/pyscript/issues

Barrow1990 avatar Jan 18 '25 22:01 Barrow1990

@raman325 - could you please take a look at this? It would be great to update config_flow.py to match the current methods that hass supports.

craigbarratt avatar Jan 19 '25 00:01 craigbarratt

I pushed a temporary hack fix a5f3cde, but not sure if it works. Please test master.

craigbarratt avatar Jan 22 '25 00:01 craigbarratt

I tried the hack. The warning is still present but I am not a specialist. Rgds.

pganansia avatar Jan 26 '25 10:01 pganansia

this might fix it : https://github.com/custom-components/pyscript/pull/702

LucidityCrash avatar Feb 25 '25 21:02 LucidityCrash