I get the following error every 5 min when I have the discovery module activated in home-assistant:
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/discovery.py", line 132, in new_service_found
discovery_hash = json.dumps([service, info], sort_keys=True)
File "/usr/local/lib/python3.6/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/usr/local/lib/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.6/json/encoder.py", line 180, in default
o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable
I think it is due to the fact that my Daikin AC is named Mjövik
(with non reg character ö
). I did have a fix for this in home-assistant/home-assistant#11233 but I closed it since @rofrantz “fixed” it in home-assistant/netdisco#158.
It would be interesting to see if someone else could reproduce this issue and perhaps issue a fix.