Unexpected exception importing platform custom_components.niu.sensorTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 879, in exec_module File "", line 1017, in get_code File "", line 947, in source_to_code File "", line 241, in _call_with_frames_removed File "/config/custom_components/niu/sensor.py", line 564 self._state = self._data_bridge.dataBat(self._id_name) IndentationError: unexpected indent
Platform error sensor.niu - Exception importing custom_components.niu.sensor
Unexpected exception importing platform custom_components.niu.sensorTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 674, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 879, in exec_module File "", line 1017, in get_code File "", line 947, in source_to_code File "", line 241, in _call_with_frames_removed File "/config/custom_components/niu/sensor.py", line 564 self._state = self._data_bridge.dataBat(self._id_name) IndentationError: unexpected indent