From 6637a478a8daa34744ca43c429131e58e9dd808c Mon Sep 17 00:00:00 2001 From: Russell Cloran Date: Sun, 23 Jul 2017 08:58:40 -0700 Subject: [PATCH] prometheus: Fix zwave battery level --- homeassistant/components/prometheus.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/prometheus.py b/homeassistant/components/prometheus.py index 18a3a932d36ab2..f244bcdd740109 100644 --- a/homeassistant/components/prometheus.py +++ b/homeassistant/components/prometheus.py @@ -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."""