mirror of https://github.com/w27/hass-bjbus
修复错误
This commit is contained in:
parent
b7a91a364c
commit
27624df937
|
@ -80,7 +80,7 @@ class BjbusSensor(CoordinatorEntity):
|
|||
"""Return the state of the device."""
|
||||
# return self._state
|
||||
if d := self._coordinator.data:
|
||||
return d[0][self._type[4]]
|
||||
return d[-1][self._type[4]]
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue