hultenvp / solis-sensor

HomeAssistant integration for the SolisCloud PV Monitoring portal via SolisCloud API
Apache License 2.0
207 stars 42 forks source link

Deprecated alias which will be removed in HA Core 2025.5 #369

Closed Dino0005 closed 1 month ago

Dino0005 commented 4 months ago

Deprecated alias which will be removed in HA Core 2025.5

HA Version 2024.5.0 on Home Assistant Yellow HACS Version: None (manual installation of Solis integration) Integration version: 3.5.2

Log: Registratore: homeassistant.helpers.typing Fonte: helpers/deprecation.py:206 Prima occorrenza: 17:22:44 (2 occorrenze) Ultima registrazione: 17:22:44

HomeAssistantType was used from solis, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'solis' custom integration ServiceCallType was used from solis, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.ServiceCall instead, please report it to the author of the 'solis' custom integration

Screenshot 2024-05-03 alle 17 49 49
Dino0005 commented 4 months ago

Since no one responded I tried to correct the custom_components/solis/__init__.py file myself...and I did it this way line 11 from homeassistant.core import HomeAssistant, ServiceCall line 14 from homeassistant.helpers.typing import ConfigType line 37 async def async_setup(hass: HomeAssistant, config: ConfigType):

pivlersmom commented 4 months ago

Since no one responded I tried to correct the custom_components/solis/__init__.py file myself...and I did it this way line 11 from homeassistant.core import HomeAssistant, ServiceCall line 14 from homeassistant.helpers.typing import ConfigType line 37 async def async_setup(hass: HomeAssistant, config: ConfigType):

Same issue here. works it for you? In my case not.

Dino0005 commented 4 months ago

Yes, after Home Assistant restarting I no longer get the deprecated alias warning

Screenshot 2024-05-21 alle 19 27 09
hultenvp commented 1 month ago

Solved as part of #380