Reputation: 3
I have a function in variable x which returns
{'activeTime': 106, 'deviceStatus': 'on', 'power': 'f29b:f19e', 'energy': 0.02, 'voltage': '7b2ba:7b366', 'deviceImg': ''}
so then I put
if 'on' in x:
print('on')
but it doesnt print on, what am i missing?
Upvotes: 0
Views: 36