Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Dino0005 opened this issue May 3, 2024 · 4 comments
Closed

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

Dino0005 opened this issue May 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Dino0005
Copy link

Dino0005 commented May 3, 2024

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 Dino0005 added the bug Something isn't working label May 3, 2024
@Dino0005
Copy link
Author

Dino0005 commented May 19, 2024

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
Copy link

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
Copy link
Author

Dino0005 commented May 21, 2024

Yes, after Home Assistant restarting I no longer get the deprecated alias warning
Screenshot 2024-05-21 alle 19 27 09

rneubert added a commit to rneubert/solis-sensor that referenced this issue May 27, 2024
Fixes hultenvp#369 

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
@hultenvp
Copy link
Owner

Solved as part of #380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants