mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
prometheus: Fix zwave battery level (#8615)
This commit is contained in:
parent
e4317a6741
commit
8f47a9109c
@ -216,6 +216,9 @@ class Metrics:
|
||||
value = state_helper.state_as_number(state)
|
||||
metric.labels(**self._labels(state)).set(value)
|
||||
|
||||
def _handle_zwave(self, state):
|
||||
self._battery(state)
|
||||
|
||||
|
||||
class PrometheusView(HomeAssistantView):
|
||||
"""Handle Prometheus requests."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user