mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Cope with attribute errors being converted (#36911)
This commit is contained in:
parent
f83d4e524b
commit
212660330f
@ -167,7 +167,7 @@ class PrometheusMetrics:
|
||||
try:
|
||||
value = float(value)
|
||||
metric.labels(**self._labels(state)).set(value)
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
|
||||
def _metric(self, metric, factory, documentation, extra_labels=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user