Mercurial > code > home > repos > homeauto
changeset 1702:ac1ae0c21bb0
formatting
author | drewp@bigasterisk.com |
---|---|
date | Sat, 23 Oct 2021 13:14:07 -0700 |
parents | 33747dcf57ea |
children | 80b01d548b9c |
files | service/rdf_to_mqtt/.flake8 service/rdf_to_mqtt/.style.yapf service/rdf_to_mqtt/rdf_to_mqtt.py |
diffstat | 3 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/rdf_to_mqtt/.flake8 Sat Oct 23 13:14:07 2021 -0700 @@ -0,0 +1,3 @@ +[flake8] +max-line-length=160 +ignore=E722,W503,E741,E201,E202,E241,E231
--- a/service/rdf_to_mqtt/.style.yapf Tue Oct 19 22:29:26 2021 -0700 +++ b/service/rdf_to_mqtt/.style.yapf Sat Oct 23 13:14:07 2021 -0700 @@ -1,4 +1,4 @@ # overwritten by /home/drewp/bin/setup_home_venv [style] based_on_style = google -column_limit = 130 +column_limit = 160
--- a/service/rdf_to_mqtt/rdf_to_mqtt.py Tue Oct 19 22:29:26 2021 -0700 +++ b/service/rdf_to_mqtt/rdf_to_mqtt.py Sat Oct 23 13:14:07 2021 -0700 @@ -132,11 +132,7 @@ def _publishRgbw(self, attrs, brightness): for chan, scale in [('w1', 1), ('r', 1), ('g', .8), ('b', .8)]: - self._publish(topic=f"{attrs['root']}/light/kit_{chan}/command", - messageJson={ - 'state': 'ON', - 'brightness': int(brightness * 255) - }) + self._publish(topic=f"{attrs['root']}/light/kit_{chan}/command", messageJson={'state': 'ON', 'brightness': int(brightness * 255)}) def _publishFrontScreenText(self, stmt): ignored = True