mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Don't try to resolve state if native_value is Null (#67134)
This commit is contained in:
@@ -152,6 +152,7 @@ class WolfLinkState(WolfLinkSensor):
|
||||
def native_value(self):
|
||||
"""Return the state converting with supported values."""
|
||||
state = super().native_value
|
||||
if state is not None:
|
||||
resolved_state = [
|
||||
item for item in self.wolf_object.items if item.value == int(state)
|
||||
]
|
||||
|
Reference in New Issue
Block a user