Skip to content

Fix HomeAssistantType deprecation for Home Assistant 2026.x compatibility - #323

Closed
jonwilliams84 wants to merge 1 commit into
Andre0512:mainfrom
jonwilliams84:fix-homeassistant-type-deprecation
Closed

Fix HomeAssistantType deprecation for Home Assistant 2026.x compatibility#323
jonwilliams84 wants to merge 1 commit into
Andre0512:mainfrom
jonwilliams84:fix-homeassistant-type-deprecation

Conversation

@jonwilliams84

Copy link
Copy Markdown

Replace deprecated HomeAssistantType with HomeAssistant from homeassistant.core.

HomeAssistantType was removed in newer Home Assistant versions, causing ImportError. This updates all imports from homeassistant.helpers.typing to homeassistant.core.

Fixes compatibility with Home Assistant 2026.x and later versions.

Files updated:

  • init.py
  • binary_sensor.py
  • button.py
  • climate.py
  • entity.py
  • fan.py
  • light.py
  • lock.py
  • number.py
  • select.py
  • sensor.py
  • switch.py

…lity

Replace deprecated HomeAssistantType with HomeAssistant from homeassistant.core.

HomeAssistantType was removed in newer Home Assistant versions, causing ImportError.
This updates all imports from homeassistant.helpers.typing to homeassistant.core.

Fixes compatibility with Home Assistant 2026.x and later versions.

Files updated:
- __init__.py
- binary_sensor.py
- button.py
- climate.py
- entity.py
- fan.py
- light.py
- lock.py
- number.py
- select.py
- sensor.py
- switch.py
@mastier

mastier commented Feb 12, 2026

Copy link
Copy Markdown

Is author (@Andre0512) still maintaining this project ? :-) I see no movement here since 2024

@jonwilliams84

Copy link
Copy Markdown
Author

Closing this — it has had no maintainer activity in 165 days, and I have since migrated off this integration onto hon-revived, so I no longer have the deprecation problem this fixes.

Leaving it open just implies I am still waiting on a review. The fix itself is still valid for anyone on HA 2026.x who is stuck on this repo, so the diff stays here in the closed PR if it is useful to them. No hard feelings — thanks for the original work, it ran my Haier units for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants