Add actor_power to Controller

This commit is contained in:
Manuel83
2017-06-18 20:08:17 +02:00
parent 167a0bb8f8
commit 26da7c66bc
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -17,6 +17,12 @@ class ActorController(object):
self.api.switch_actor_off(int(id))
@cbpi.try_catch(None)
def actor_power(self, power, id=None):
if id is None:
id = self.heater
self.api.actor_power(int(id), power)
class SensorController(object):