From e83b21ad333513ae01e3d8a5cb1c2fd285b8fcf0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 13 Apr 2018 23:45:29 +0200 Subject: [PATCH] No outline on the ZeroBorg div when focused --- platypush/backend/http/static/css/gpio.zeroborg.css | 4 ++++ platypush/plugins/gpio/zeroborg/__init__.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/platypush/backend/http/static/css/gpio.zeroborg.css b/platypush/backend/http/static/css/gpio.zeroborg.css index 4aaeb43ea..cdafb1174 100644 --- a/platypush/backend/http/static/css/gpio.zeroborg.css +++ b/platypush/backend/http/static/css/gpio.zeroborg.css @@ -1,3 +1,7 @@ +#zb-container { + outline: none !important; +} + .zb-controls-container { margin: auto; width: 25%; diff --git a/platypush/plugins/gpio/zeroborg/__init__.py b/platypush/plugins/gpio/zeroborg/__init__.py index 8b9c50aff..3c2d0f379 100644 --- a/platypush/plugins/gpio/zeroborg/__init__.py +++ b/platypush/plugins/gpio/zeroborg/__init__.py @@ -68,6 +68,9 @@ class GpioZeroborgPlugin(Plugin): elif 'below_threshold_direction' in sensor: direction = sensor['below_threshold_direction'] + logging.info('Sensor: {}\tMeasurement: {}\tDirection: {}' + .format(sensor['plugin'], value, direction)) + return direction