File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ def toggle_peripheral(self, peripheral_id):
89
89
90
90
def on (self , peripheral_id ):
91
91
"""Turns specified peripheral `on` (100%)."""
92
+ self .state .print_status (description = f"Turning ON peripheral { peripheral_id } ." )
92
93
93
94
peripheral = self .info .api_get ("peripherals" , peripheral_id )
94
95
mode = peripheral ["mode" ]
@@ -98,13 +99,12 @@ def on(self, peripheral_id):
98
99
elif mode == 0 :
99
100
self .control_peripheral (peripheral_id , 1 )
100
101
101
- self .state .print_status (description = f"Turned ON peripheral { peripheral_id } ." )
102
102
return
103
103
104
104
def off (self , peripheral_id ):
105
105
"""Turns specified peripheral `off` (0%)."""
106
+ self .state .print_status (description = f"Turning OFF peripheral { peripheral_id } ." )
106
107
107
108
self .control_peripheral (peripheral_id , 0 )
108
109
109
- self .state .print_status (description = f"Turned OFF peripheral { peripheral_id } ." )
110
110
return
You can’t perform that action at this time.
0 commit comments