-
Notifications
You must be signed in to change notification settings - Fork 146
Description
Hi there,
This integration never failed me before and I've been using it for a while now. I have 6 ACs in my 2 apartments. 4 in one and 2 in another. The 4 are connecting directly to HA and 2 are connected via VPN. My 2nd apartment which is the remote site - internet went out for over a day and so did my homeassistant. The Homeassistant UI would keep disconnecting the integrations would time out. I started digging and found out that the gree integration was the culprit because by disabling it brought HA back to live. What I had was each device was repeated in every config entry. Too bad I didn't take a snapshot of that but I will try to describe how it was:
Normally the integration page should look like this (excluding the 2nd apartment ACs) cause I deleted them when I was making this:
Mine was showing like follows - each config entry had config entry number of devices in it:
Bedroom AC
- Bedroom AC - 17 entities
- Kidsroom AC - 1 entity
- Kitchen AC - 1 entity
- Livingroom AC - 1 entity
Kidsroom AC
- Bedroom AC - 1 entity
- Kidsroom AC - 17 entities
- Kitchen AC - 1 entity
- Livingroom AC - 1 entity
Kitchen AC
- Bedroom AC - 1 entity
- Kidsroom AC - 1 entity
- Kitchen AC - 17 entities
- Livingroom AC - 1 entity
Livingroom AC
- Bedroom AC - 1 entity
- Kidsroom AC - 1 entity
- Kitchen AC - 1 entity
- Livingroom AC - 17 entities
Which was really strange. Could none available devices cause this to happen? I ended up deleting all the entries and setting it all up again.
Now in the integration UI trying to click the settings button on the AC gives the following error:
And the following is seen in the logs:
2025-12-11 20:25:31.001 ERROR (MainThread) [aiohttp.server] Error handling request from 10.10.10.251 Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 510, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/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 87, 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 41, 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 83, in with_admin return await func(self, request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 272, in post return await super().post(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/helpers/data_entry_flow.py", line 76, in post return await self._post_impl(request, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 83, in _post_impl result = await self._flow_mgr.async_init( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 316, in async_init flow = await self.async_create_flow(handler, context=context, data=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3682, in async_create_flow return handler.async_get_options_flow(entry) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ File "/config/custom_components/gree/config_flow.py", line 232, in async_get_options_flow return OptionsFlowHandler(config_entry) File "/config/custom_components/gree/config_flow.py", line 239, in __init__ self.config_entry = config_entry ^^^^^^^^^^^^^^^^^ AttributeError: property 'config_entry' of 'OptionsFlowHandler' object has no setter