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