Skip to content

Commit

Permalink
All test pass, 100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
CJNE committed Sep 12, 2021
1 parent c0f7e76 commit 60ce57e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/myenergi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ def name(self):
@property
def state(self):
"""Return the state of the sensor."""
value = self.device.ct_groups.get(self.key, None)
return value
return self.device.ct_groups.get(self.key, None)

@property
def unit_of_measurement(self):
Expand Down

0 comments on commit 60ce57e

Please sign in to comment.