Skip to content

Commit

Permalink
Merge pull request #5 from lewisbenge/dev
Browse files Browse the repository at this point in the history
Fixes#3 Trigger data load in constructor of sensor
  • Loading branch information
lewisbenge committed Jun 15, 2020
2 parents 708393f + 787bacc commit b3aff36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/amberelectric/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(self, amber_data, postcode, sensor_type, friendly_name, icon) :
self.sensor_type = sensor_type
self.friendly_name = friendly_name
self.icon_uri = icon
self.update()

@property
def icon(self):
Expand Down

0 comments on commit b3aff36

Please sign in to comment.