Closed nanassito closed 3 years ago
Add support for devices that expose a ON/OFF value. This is the case for several switch. This proposal maps ON to 1 and OFF to 0 when exporting the metrics.
fixed the linting. Would you mind if I add them as a pre-commit to avoid the round trip to Travis every time ?
sure, go ahead. I was planning to add the tox.ini to do it using easily.
Add support for devices that expose a ON/OFF value. This is the case for several switch. This proposal maps ON to 1 and OFF to 0 when exporting the metrics.