Skip to content

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

Open
jonwilliams84 wants to merge 1 commit intoAndre0512:mainfrom
jonwilliams84:fix-homeassistant-type-deprecation
Open

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

Conversation

@jonwilliams84
Copy link

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

mastier commented Feb 12, 2026

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

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