Hi all,
Updated HA to 2022.11.0 and since then I get errors from Nest Protect:
Unable to prepare setup for platform nest_protect.select: Platform not found (Exception importing custom_components.nest_protect.select).
08:03:23 – (ERROR) setup.py
Unexpected exception importing platform custom_components.nest_protect.select
08:03:23 – (ERROR) Nest Protect (custom integration)
It also say that “select.nest_protect_bedroom_brightness” is not provided anymore bij the integration:
This entity is no longer being provided by the nest_protect integration. If the entity is no longer in use, delete it in settings.
Here the error log:
2022-11-03 08:03:23.749 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.nest_protect.select
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 728, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 745, 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 "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/nest_protect/select.py", line 23, in <module>
class NestProtectSelectDescription(
File "/usr/local/lib/python3.10/dataclasses.py", line 1185, in dataclass
return wrap(cls)
File "/usr/local/lib/python3.10/dataclasses.py", line 1176, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
File "/usr/local/lib/python3.10/dataclasses.py", line 1025, in _process_class
_init_fn(all_init_fields,
File "/usr/local/lib/python3.10/dataclasses.py", line 546, in _init_fn
raise TypeError(f'non-default argument {f.name!r} '
TypeError: non-default argument 'key' follows default argument
2022-11-03 08:03:23.755 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform nest_protect.select: Platform not found (Exception importing custom_components.nest_protect.select).