hectorespert / python-oligo

Cliente Python (NO OFICIAL) para i-DE (Iberdrola distribución)
https://hectorespert.github.io/python-oligo/
MIT License
70 stars 27 forks source link

Fix key error in watthourmeter() #13

Closed pbalm closed 3 years ago

pbalm commented 3 years ago

The function watthourmeter gets the key "power" from the dict returned by measurement but that key doesn't exist - it should be consumption.

This fixes issue 12

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication