Add toggle to remotes (#8483)

* Add toggle to remotes

* Only include activity if specified, and add service description
This commit is contained in:
Alan Fischer authored and Martin Hjelmare committed 2017-07-31 19:46:12 +02:00
1 parent 91b062f9b7
commit e6be560e00
5 files changed
+44 -10

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ class ITachIP2IRRemote(remote.RemoteDevice):
self.itachip2ir.send(self._name, "ON", 1)
self.schedule_update_ha_state()
def turn_off(self):
def turn_off(self, **kwargs):
"""Turn the device off."""
self._power = False
self.itachip2ir.send(self._name, "OFF", 1)