Skip to content

Commit

Permalink
Fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Oct 7, 2023
1 parent 45172cf commit 392fc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/yandex_smart_home/entry_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def user_id(self) -> str | None:
@property
def pressure_unit(self) -> str:
settings = self._yaml_config.get(const.CONF_SETTINGS, {})
return settings.get(const.CONF_PRESSURE_UNIT) or UnitOfPressure.MMHG.value
return str(settings.get(const.CONF_PRESSURE_UNIT) or UnitOfPressure.MMHG.value)

@property
def color_profiles(self) -> ColorProfiles:
Expand Down

0 comments on commit 392fc65

Please sign in to comment.