Traceback (most recent call last):


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/homeassistant/homeassistant/components/prometheus/__init__.py", line 146, in handle_event

getattr(self, handler)(state)


 "/usr/src/homeassistant/homeassistant/components/prometheus/__init__.py", line 297, in _handle_sensor

metric, self.prometheus_client.Gauge, f"Sensor data measured in {unit}"


 "/usr/src/homeassistant/homeassistant/components/prometheus/__init__.py", line 163, in _metric

self._metrics[metric] = factory(full_metric_name, documentation, labels)


 "/usr/local/lib/python3.7/site-packages/prometheus_client/metrics.py", line 324, in __init__

labelvalues=labelvalues,


 "/usr/local/lib/python3.7/site-packages/prometheus_client/metrics.py", line 94, in __init__

raise ValueError('Invalid metric name: ' + self._name)
ValueError: Invalid metric name: hass_sensor_unit_°

Traceback (most recent call last):


 "C:\Users\ADMIN\Anaconda3\lib\site-packages\distributed\protocol\core.py", line 114, in loads

header = msgpack.loads(header, use_list=False, **msgpack_opts)


 "msgpack\_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: tuple is not allowed for map key
