Skip to content

Commit

Permalink
Fix error for state attribs #1
Browse files Browse the repository at this point in the history
* Fix error for state attribs
  • Loading branch information
dgtal1 authored Sep 23, 2020
1 parent 7e30ba0 commit 5ad3a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extalife/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def device_class(self):
def device_state_attributes(self):
"""Return device specific state attributes."""
attr = super().device_state_attributes
data = self.channel_data.get("data")
data = self.channel_data #get("data")
# general sensor attributes
if data.get("sync_time") is not None:
attr.update({"sync_time": data.get("sync_time")})
Expand Down

0 comments on commit 5ad3a1f

Please sign in to comment.