Closed Felix-Pi closed 2 years ago
Brilliant! Thanks @Felix-Pi ! Great work on the extension.
I merged this but suggest you consider adding a few things:
KeyError
exception, catch it and respond back with an error indicating the device does not appear to have energy measurement (see the error_json()
function if you want to use it for a response).Thank you for your input! I'll look into it as soon as possible 👍🏼
Added SocketDevice to receive power consumption data