prometheus: Fix zwave battery level (#8615)
This commit is contained in:
1 parent
4b449f5f93
commit
f0293eeac2
1 file changed
+3
@@ -216,6 +216,9 @@ class Metrics:
|
|||||||
value = state_helper.state_as_number(state)
|
value = state_helper.state_as_number(state)
|
||||||
metric.labels(**self._labels(state)).set(value)
|
metric.labels(**self._labels(state)).set(value)
|
||||||
|
|
||||||
|
def _handle_zwave(self, state):
|
||||||
|
self._battery(state)
|
||||||
|
|
||||||
|
|
||||||
class PrometheusView(HomeAssistantView):
|
class PrometheusView(HomeAssistantView):
|
||||||
"""Handle Prometheus requests."""
|
"""Handle Prometheus requests."""
|
||||||
|
|||||||
Reference in new issue
Block a user