mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-09 18:52:40 +02:00
Add actor_power to Controller
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user