Skip to content

Commit

Permalink
prometheus: Fix zwave battery level (home-assistant#8615)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcloran authored and dethpickle committed Aug 18, 2017
1 parent 5807051 commit 8c4cb37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/prometheus.py
Expand Up @@ -216,6 +216,9 @@ def _handle_switch(self, state):
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."""
Expand Down

0 comments on commit 8c4cb37

Please sign in to comment.