Fix shorthand native value type in sensor entity component (#59908)
This commit is contained in:
parent
d18c250acf
commit
24f3fd35c9
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class SensorEntity(Entity):
|
|||
entity_description: SensorEntityDescription
|
||||
_attr_last_reset: datetime | None # Deprecated, to be removed in 2021.11
|
||||
_attr_native_unit_of_measurement: str | None
|
||||
_attr_native_value: StateType = None
|
||||
_attr_native_value: StateType | date | datetime = None
|
||||
_attr_state_class: str | None
|
||||
_attr_state: None = None # Subclasses of SensorEntity should not set this
|
||||
_attr_unit_of_measurement: None = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue