Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add intergration #211

Open
Dizzyikea opened this issue Nov 26, 2024 · 20 comments
Open

Can't add intergration #211

Dizzyikea opened this issue Nov 26, 2024 · 20 comments

Comments

@Dizzyikea
Copy link

The problem

I am able to add the integration via hacs (i did also delete from hacs and copy manually) but when trying to add on the intergration screen mammotion is found but results in an error.

Error
Config flow could not be loaded: {"message":"Invalid handler specified"}

This is immediate no configuration is offered

What Mammotion mower are you using?

Yuka

What version of the Mammotion intergration are you using?

0.1.106

What version of Home Assistant Core are you running?

2024.11.3

@mikey0000
Copy link
Owner

Hey, can you look in your logs to see if there are any more clues as to why its not loading?

@Dizzyikea
Copy link
Author

Logger: homeassistant.loader
Source: loader.py:1268
First occurred: 08:27:31 (2 occurrences)
Last logged: 08:27:31

Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable

@Dizzyikea
Copy link
Author

Logger: homeassistant.config_entries
Source: config_entries.py:3249
First occurred: 08:27:31 (1 occurrences)
Last logged: 08:27:31

Error occurred loading flow for integration mammotion: Exception importing custom_components.mammotion.config_flow

@mikey0000
Copy link
Owner

Thanks I'll be able to track that down

@mikey0000
Copy link
Owner

any chance you've updated from an old version? It looks like some old saved data is trying to be restored. I can remedy this, just want to verify that this is indeed the case.

@Dizzyikea
Copy link
Author

Yes and no, this was my sequence

106 via hacs this worked until restart
Deleted
106 via hacs did not work
Deleted and full reboot
106 via smb share did not work
Deleted and restart
105 via hacs did not work
Deleted and full reboot
Finally 106 via hacs and issue raised

@mikey0000
Copy link
Owner

Cool, I'll get thst sorted ASAP

@Dizzyikea
Copy link
Author

Is there data I need to delete in the meantime?

@mikey0000
Copy link
Owner

I've just pushed a new release now, can you give it a try please.

@Dizzyikea
Copy link
Author

Deleted 106 and hard reboot
Installed 108 and hard reboot
Same error persists

@mikey0000
Copy link
Owner

There is a file under .storage which will have your mower data, it will be named the same as your mower, can you access it? If so rename it/remove it. But before you do that can you send me the full error log on here, I can't see the exact line where the error is occurring. Odd that it's not what I thought it was.

@Dizzyikea
Copy link
Author

2024-11-28 18:30:59.697 ERROR (ImportExecutor_0) [homeassistant.loader] Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
2024-11-28 18:30:59.730 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
2024-11-28 18:30:59.736 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration mammotion: Exception importing custom_components.mammotion.config_flow

@Dizzyikea
Copy link
Author

Ok so i SSH'd in and did a rm -r on the mammotion custom_components directory and on the Yuka directory in .storage tried a quick find from root for mammotion* and Yuka* to see if anything was left could not see anything.
I cleared the logs
Hard Reboot install via hacs 108
Hard Reboot tried to add integration and...

@Dizzyikea
Copy link
Author

2024-11-28 19:00:49.434 ERROR (ImportExecutor_0) [homeassistant.loader] Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
2024-11-28 19:00:49.676 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('custom_components.mammotion.config_flow',) in /usr/src/homeassistant/homeassistant/loader.py, line 1300: return importlib.import_module(f"{self.pkg_path}.{platform_name}") inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/main.py", line 223, in
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self.args)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 112, in sem_task
return await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1301, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1326, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1518, in async_create_flow
handler = await _async_get_flow_handler(
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3268, in _async_get_flow_handler
await _load_integration(hass, domain, hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3247, in _load_integration
await integration.async_get_platform("config_flow")
File "/usr/src/homeassistant/homeassistant/loader.py", line 1104, in async_get_platform
platforms = await self.async_get_platforms((platform_name,))
File "/usr/src/homeassistant/homeassistant/loader.py", line 1169, in async_get_platforms
platforms.update(self._load_platforms(platform_names))
File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _load_platforms
platform_name: self._load_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
2024-11-28 19:00:49.761 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
2024-11-28 19:00:49.769 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration mammotion: Exception importing custom_components.mammotion.config_flow
2024-11-28 19:00:49.784 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3247, in _load_integration
await integration.async_get_platform("config_flow")
File "/usr/src/homeassistant/homeassistant/loader.py", line 1104, in async_get_platform
platforms = await self.async_get_platforms((platform_name,))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
import_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1169, in async_get_platforms
platforms.update(self._load_platforms(platform_names))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _load_platforms
platform_name: self._load_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1288, in load_platform
raise ImportError(
ImportError: Exception importing custom_components.mammotion.config_flow
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 137, in async_start
await gather_with_limited_concurrency(FLOW_INIT_LIMIT, *init_coros)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 114, in gather_with_limited_concurrency
return await gather(
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 112, in sem_task
return await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1301, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1326, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1518, in async_create_flow
handler = await _async_get_flow_handler(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3268, in _async_get_flow_handler
await _load_integration(hass, domain, hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3254, in _load_integration
raise data_entry_flow.UnknownHandler from err
homeassistant.data_entry_flow.UnknownHandler
2024-11-28 19:01:25.510 ERROR (ImportExecutor_0) [homeassistant.loader] Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
2024-11-28 19:01:25.615 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('custom_components.mammotion.config_flow',) inside the event loop by integration 'config' at homeassistant/components/config/config_entries.py, line 179: return await super()._post_impl(request, data) (offender: /usr/src/homeassistant/homeassistant/loader.py, line 1300: return importlib.import_module(f"{self.pkg_path}.{platform_name}")), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+config%22
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/main.py", line 223, in
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 567, in _handle
return await handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post
return await self._post_impl(request, data)
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl
return await super()._post_impl(request, data)
2024-11-28 19:01:25.636 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.mammotion.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable
2024-11-28 19:01:25.643 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration mammotion: Exception importing custom_components.mammotion.config_flow

@Dizzyikea
Copy link
Author

Dizzyikea commented Nov 29, 2024 via email

@Dizzyikea
Copy link
Author

Stopped again after a reboot :(

@mikey0000
Copy link
Owner

Same error?

@Dizzyikea
Copy link
Author

Sorry i should have said, yes same error

@Dizzyikea
Copy link
Author

Update

I edited my config.xml to add a camera i got on black Friday. I added 3 lines never deleted anything and when i rebooted Mammmotion started working but just stopped again at the next reboot

Logger: homeassistant.loader
Source: loader.py:1071
First occurred: 19:09:55 (2 occurrences)
Last logged: 19:09:55

Unexpected exception importing component custom_components.mammotion
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1071, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/mammotion/init.py", line 10, in
from .const import (
File "/config/custom_components/mammotion/const.py", line 9, in
from pymammotion.mammotion.devices.mammotion_bluetooth import CharacteristicMissingError
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/init.py", line 3, in
from .mammotion import MammotionBaseBLEDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py", line 15, in
from pymammotion.data.model.device import MowingDevice
File "/usr/local/lib/python3.12/site-packages/pymammotion/data/model/device.py", line 36, in
class MowingDevice(DataClassORJSONMixin):
File "/usr/local/lib/python3.12/site-packages/mashumaro/mixins/dict.py", line 26, in init_subclass
compile_mixin_unpacker(cls, **builder_params["unpacker"])
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/mixin.py", line 49, in compile_mixin_unpacker
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 776, in unpack_special_typing_primitive
uv = UnpackerRegistry.get(spec.copy(type=arg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 222, in get
expr = packer(spec)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/unpack.py", line 730, in unpack_dataclass
builder.add_unpack_method()
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 584, in add_unpack_method
self._add_unpack_method_lines(method_name)
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 489, in _add_unpack_method_lines
).build(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/code/builder.py", line 1330, in build
unpacked_value = UnpackerRegistry.get(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mashumaro/core/meta/types/common.py", line 225, in get
raise UnserializableField(
mashumaro.exceptions.UnserializableField: Field "msgtype" of type MsgCmdType in LubaMsg is not serializable

@mikey0000
Copy link
Owner

I'm working away at resolving this once and for all, but it will take some time. Revamping a lot of the integration to be a lot better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants