Smartstrip: return on_since state information only when the socket is on (#161)

* Smartstrip: return on_since state information only when the socket is on

Fixes #160

* add proper cli printout for hs300 child sockets

* iterate over range, not an integer
This commit is contained in:
Teemu R
2019-03-16 21:32:59 +01:00
committed by GitHub
parent 8046c96b54
commit 960ec6a346
3 changed files with 15 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ class SmartDevice(object):
self.protocol = protocol
self.emeter_type = "emeter" # type: str
self.context = context
self.num_children = 0
def _query_helper(self,
target: str,