Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed Oct 26, 2024
1 parent 8c24ea5 commit 329e199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ftms/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class FtmsSensorEntity(FtmsEntity, SensorEntity):
"""Representation of FTMS sensors."""

def __init__(self, entry, description) -> None:
self._attr_native_value = _DEFAULT_VALUES.get(self.key, 0)
self._attr_native_value = _DEFAULT_VALUES.get(description.key, 0)
super().__init__(entry, description)

@callback
Expand Down

0 comments on commit 329e199

Please sign in to comment.