home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.16k stars 29.83k forks source link

After updating to 0.114.4 daikin climate are gone #40096

Closed Hunty82 closed 3 years ago

Hunty82 commented 4 years ago

After updating to 0.114.4 all my daikin (5) A/C loss the climate entity. image It shows 5 entities instead of 6, climate entity is missing.

I've tried to setup another HA supervised (same version ,0.114.4) in docker in a ubuntu virtual machine and the daikin integration shows for each A/C 6 entities.

So I've compared the two installation using beyond compare, founding only difference in core.entity_registry, related to the climate entity. I've put the related code in the HA installation that has problem setting up the climate entity but after a reboot, it says that the entity was unavailable.

I've attached the related log that shows up today playing with the core.entity_registry


  File "/usr/src/homeassistant/homeassistant/components/daikin/config_flow.py", line 133, in async_step_zeroconf

    await self.async_set_unique_id(next(iter(devices))[KEY_MAC])

StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 128, in async_init

    result = await self._async_handle_step(

  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step

    result: Dict = await getattr(flow, method)(user_input)

RuntimeError: coroutine raised StopIteration
probot-home-assistant[bot] commented 4 years ago

daikin documentation daikin source (message by IssueLinks)

probot-home-assistant[bot] commented 4 years ago

Hey there @fredrike, mind taking a look at this issue as its been labeled with an integration (daikin) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

fredrike commented 4 years ago

I'll have a look but it seems that there is an issue during the zeroconf setup. Could you try to add the device with ip-address to make sure that it works.

One more thing, there have been no updates in the Daikin integration afik so that it fails on 0.114.4 seems really strange.

Hunty82 commented 4 years ago

I've removed all daikin integration from setting/integration page and re added manually using the IP address, but nothing appeared in the log. All my 5 daikin A/C have only 5 entities. No log information (maybe it is possible to have a more verbose log?)

I've also a vaillant custom integration that has lost the climate entity

Hunty82 commented 3 years ago

You can close this issue. After a lot of compare between my normal installation and a virtualized one, I've found that I made a mistake when I've updated the custom component vaillant: instead of python code it was full of xml/html tag. After I've replaced the proper code finally all the climate entities were back. It is very strange that logs didn't show any error and for a custom component I've lost all my climate entities.

fredrike commented 3 years ago

@springstan, this should be closed.