pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

Deprecation WARNING message in HA Log

Open dy-nz opened this issue 1 year ago • 6 comments

Hi, today I received the following line in the HA Log:

2024-11-08 13:37:12.510 WARNING (ImportExecutor_0) [homeassistant.core] Config was used from pyscript, this is a deprecated alias which will be removed in HA Core 2025.11. Use homeassistant.core_config.Config instead, please report it to the author of the 'pyscript' custom integration

Not sure what is causing it. I use the following lines in my pyscript file, but removing them doesn't cause the WARNING to disappear:

from homeassistant.config import async_hass_config_yaml yy = async_hass_config_yaml(hass)['input_select']['zm_sound_mode']['initial'] xx = hass.config.config_dir

Is there anything I should update in my pyscript ?

Thanks, David.

And, pyscript is still the best Integration :-)

dy-nz avatar Nov 08 '24 01:11 dy-nz

fix incoming #658 thank you for your report!

ALERTua avatar Nov 08 '24 08:11 ALERTua

Thanks

dy-nz avatar Nov 16 '24 08:11 dy-nz

Hallo, ich habe auch die Fehlermeldung. Wird das noch gefixt oder was kann ich dagegen tun?

Danke.

Matthias1977-tech avatar Nov 18 '24 20:11 Matthias1977-tech

@Matthias1977-tech you can either wait for #658 to be merged or implement its changes in your local copy of the code at /config/custom_components/pyscript

ALERTua avatar Nov 19 '24 08:11 ALERTua

Nearly the same Log entry after Update HA from 2024.10.4 to 2024.11.2

Logger: homeassistant.core Quelle: helpers/deprecation.py:222 Erstmals aufgetreten: 10:36:55 (1 Vorkommnisse) Zuletzt protokolliert: 10:36:55

Config was used from pyscript, this is a deprecated alias which will be removed in HA Core 2025.11. Use homeassistant.core_config.Config instead, please report it to the author of the 'pyscript' custom integration

Before I make a manual change, when will the update of the integration comes out ? Thanks in adv.

Just-Zuul avatar Nov 19 '24 09:11 Just-Zuul

Just to note that I also get this in HA Core 2025.2.2

Logger: homeassistant.core Source: helpers/deprecation.py:222 First occurred: 00:32:06 (1 occurrences) Last logged: 00:32:06 Config was used from pyscript, this is a deprecated alias which will be removed in HA Core 2025.11. Use homeassistant.core_config.Config instead, please report it to the author of the 'pyscript' custom integration

ProphetOfDoom avatar Feb 12 '25 01:02 ProphetOfDoom