Skip to content

Commit

Permalink
Merge pull request #206 from marcelvriend/fix-entry_type-warnings
Browse files Browse the repository at this point in the history
Fix deprecated 'str for device registry entry_type' warnings
  • Loading branch information
isabellaalstrom authored May 2, 2022
2 parents d64f763 + 35f98e5 commit 38c4366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/grocy/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def device_info(self):
"manufacturer": NAME,
}
# LEGACY can be removed when min HA version is 2021.12
if MAJOR_VERSION >= 2021 and MINOR_VERSION >= 12:
if (MAJOR_VERSION > 2021) or (MAJOR_VERSION == 2021 and MINOR_VERSION >= 12):
# pylint: disable=import-outside-toplevel
from homeassistant.helpers.device_registry import DeviceEntryType

Expand Down

0 comments on commit 38c4366

Please sign in to comment.