Skip to content

Commit

Permalink
Fix deprecated 'str for device registry entry_type' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelvriend committed May 1, 2022
1 parent d64f763 commit 35f98e5
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 35f98e5

Please sign in to comment.