mirror of
https://github.com/home-assistant/core.git
synced 2025-11-23 17:56:59 +00:00
Improve sensor type hints in integrations (#90031)
* Improve sensor type hints in integrations * Improve
This commit is contained in:
@@ -123,6 +123,6 @@ class EmonitorPowerSensor(CoordinatorEntity, SensorEntity):
|
||||
return self._paired_attr(self.entity_description.key)
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self) -> dict:
|
||||
def extra_state_attributes(self) -> dict[str, int]:
|
||||
"""Return the device specific state attributes."""
|
||||
return {"channel": self.channel_number}
|
||||
|
||||
Reference in New Issue
Block a user