roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
218 stars 32 forks source link

error Could not parse JSON content: /config/custom_components/yi_hack/translations/es.json #64

Closed JoseCarlos-Balan closed 5 months ago

JoseCarlos-Balan commented 2 years ago

i have this error after install

Logger: homeassistant.util.json Source: util/json.py:32 First occurred: 22:00:12 (2 occurrences) Last logged: 22:02:25

Could not parse JSON content: /config/custom_components/yi_hack/translations/es.json Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/util/json.py", line 32, in load_json return json.loads(fdesc.read()) # type: ignore File "/usr/local/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 166: invalid continuation byte

roleoroleo commented 2 years ago

It's an error related to utf. But it should be already fixed in the last commit. https://github.com/roleoroleo/yi-hack_ha_integration/commit/7bc8787fd73e84528cc950f4451fc6b56424227d https://github.com/roleoroleo/yi-hack_ha_integration/commit/0cf2fee86e7567e66609dfa2e4ec08f60436505c

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.