locky пре 1 година
родитељ
комит
737c27a10e
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      controller/deviceStatus.py

+ 2 - 2
controller/deviceStatus.py

@@ -590,7 +590,7 @@ class deviceStatus(TemplateView):
                             }
                         ]
             if online is not None:
-                endpoint_health_value = 'OK' if online == '1' else 'NOT_FOUND'
+                endpoint_health_value = "OK" if online == '1' else "NOT_FOUND"
                 properties.append(
                     {
                         "namespace": "Alexa.EndpointHealth",
@@ -602,7 +602,7 @@ class deviceStatus(TemplateView):
                         "uncertaintyInMilliseconds": 0
                     }
                 )
-
+            logger.info('插座ChangeReport properties:{}'.format(properties))
             payload = {
                 "event": {
                     "header": {