Skip to content

Commit

Permalink
Fix version check for TariffSelect change (#680)
Browse files Browse the repository at this point in the history
Somehow I misread the upstream commit history!
  • Loading branch information
whi-tw committed Apr 14, 2022
1 parent 7fe55bb commit 9dfeeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/powercalc/sensors/utility_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def create_utility_meters(
select_component = cast(
EntityComponent, hass.data["entity_components"].get(SELECT_DOMAIN)
)
if AwesomeVersion(HA_VERSION) >= AwesomeVersion("2022.4.3"):
if AwesomeVersion(HA_VERSION) >= AwesomeVersion("2022.4.0"):
select_unique_id = None
if unique_id:
select_unique_id = f"{unique_id}_select"
Expand Down

0 comments on commit 9dfeeec

Please sign in to comment.