Skip to content

Commit

Permalink
Fix update button (#10)
Browse files Browse the repository at this point in the history
* Fix update button
  • Loading branch information
ejohb authored May 25, 2022
1 parent f956aa2 commit ef7fcd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amniotic/mqtt/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class ButtonUpdate(Entity):
"""
HA_PLATFORM = 'button'
NAME = 'Update Check'
NAME = 'Update'

def get_value(self) -> Any:
pass
Expand Down
1 change: 1 addition & 0 deletions amniotic/mqtt/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def entity_classes(self):
from amniotic.mqtt import control, sensor
entity_classes = [
control.SelectTheme, control.VolumeMaster, control.VolumeTheme, control.ToggleTheme, control.DeviceTheme, control.ButtonUpdateCheck,
control.ButtonUpdate,
sensor.Title, sensor.Album, sensor.Date, sensor.By, sensor.Duration, sensor.Elapsed, sensor.UpdateStatus
]
return entity_classes
Expand Down
2 changes: 1 addition & 1 deletion amniotic/mqtt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Elapsed(Duration):
class UpdateStatus(Sensor):
NAME = 'Update Status'
ICON_SUFFIX = 'semantic-web'
message = None
message = Sensor.NA_VALUE

def set_value(self, value):
"""
Expand Down

0 comments on commit ef7fcd7

Please sign in to comment.