Skip to content

Use EntityCategory and bump version - #27

Merged
adnansarajlic merged 1 commit into
mainfrom
Fix-Sensors
Mar 30, 2026
Merged

adnansarajlic merged 1 commit into
mainfrom
Fix-Sensors

Conversation

@adnansarajlic

Copy link
Copy Markdown
Owner

Replace the string entity_category with EntityCategory.DIAGNOSTIC and import homeassistant.const.EntityCategory in sensor.py to avoid ValueError. Bump package version and User-Agent from 1.2.1 to 1.2.2 in manifest and sensor headers. Update CHANGELOG with the fix. Adjust tests/conftest.py to mock homeassistant.const and provide a MagicMock for EntityCategory so tests run with the new import.

Replace the string entity_category with EntityCategory.DIAGNOSTIC and import homeassistant.const.EntityCategory in sensor.py to avoid ValueError. Bump package version and User-Agent from 1.2.1 to 1.2.2 in manifest and sensor headers. Update CHANGELOG with the fix. Adjust tests/conftest.py to mock homeassistant.const and provide a MagicMock for EntityCategory so tests run with the new import.
@adnansarajlic
adnansarajlic merged commit 0c6c816 into main Mar 30, 2026
3 checks passed
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.

1 participant