fix wrong indentation
This commit is contained in:
parent
29b04c7d00
commit
5073aec1dd
|
@ -49,13 +49,13 @@ class Controller:
|
||||||
print("msg = " + msg)
|
print("msg = " + msg)
|
||||||
|
|
||||||
if message.topic.endswith(__TOPIC_BRIGHTNESS__ + "/set"):
|
if message.topic.endswith(__TOPIC_BRIGHTNESS__ + "/set"):
|
||||||
val = float(msg)
|
val = float(msg)
|
||||||
if val >= 0.0 and val <=1.0:
|
if val >= 0.0 and val <=1.0:
|
||||||
self.display.brightness = val
|
self.display.brightness = val
|
||||||
print("changed brightness to ", self.display.brightness)
|
print("changed brightness to ", self.display.brightness)
|
||||||
self.mqtt.publish(self.topic + "/" + __TOPIC_BRIGHTNESS__, self.display.brightness, 1 )
|
self.mqtt.publish(self.topic + "/" + __TOPIC_BRIGHTNESS__, self.display.brightness, 1 )
|
||||||
else:
|
else:
|
||||||
print("invalid brightness ", val)
|
print("invalid brightness ", val)
|
||||||
|
|
||||||
if message.topic.endswith(__TOPIC_SCROLL_INTERVAL__ + "/set"):
|
if message.topic.endswith(__TOPIC_SCROLL_INTERVAL__ + "/set"):
|
||||||
val = float(msg)
|
val = float(msg)
|
||||||
|
|
Loading…
Reference in New Issue