Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Oct 30, 2024
1 parent 80d9a2a commit 9dc4e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hive_local_thermostat/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import abc
from dataclasses import dataclass
from typing import Any
from typing import Any, cast

from homeassistant.helpers.entity import DeviceInfo, Entity, EntityDescription

Expand Down Expand Up @@ -52,4 +52,4 @@ def get_entity_value(self, entity_key: str, default: float) -> float:
if self.entity_description.entry_id not in self.hass.data[DOMAIN]:
return default

return self.hass.data[DOMAIN][self.entity_description.entry_id].get(entity_key, default)
return cast(float, self.hass.data[DOMAIN][self.entity_description.entry_id].get(entity_key, default))

0 comments on commit 9dc4e6b

Please sign in to comment.