Aohzan/ecodevices

TypeError: async_get_or_create() got an unexpected keyword argument 'configuration_url'

Closed this issue ยท 11 comments

Hello ๐Ÿ‘‹ ,

I just updated to v3.0 from 2.4 (with HACS).

I get this error after restarting HA :

CleanShot 2021-11-07 at 22 53 31@2x

Is it related to the "Add device configuration link" from the changelog ?

Hello,
Yes, you must have the last Home Assistant version : 2021.11, can you upgrade ?

@Aohzan yep, I was on the last upgrade of HA (2021.11)

I think it's because I don't have a host configured. I uninstalled the ecodevice integration and reinstalled it :

CleanShot 2021-11-08 at 10 33 27

Before I did that I could not (re)configure the host and port. Now I have this fields in the red square when I try to reinstall, but I cannot find a way to make the host field work (I tried http://192.168.1.77 and 192.168.1.77 ) but no luck :/

Do you have something in the logs (can you enable debug log for the custom component) ?
(You have to put just 192.168.1.77 in host field)

@Aohzan ok in fact my installation was indeed 2011.10 instead of 2011.11 (๐Ÿคฆโ€โ™‚๏ธ )
so I installed 2011.11, but now as I have uninstalled your custom component and re-installed it, I cannot go through the configuration step :

for the logger, I have added this to my configuration.yaml :

logger:
  default: warning
  logs:
    homeassistant.components.ecodevices: debug

I get this in the log after trying to add the integration via the GUI :

CleanShot 2021-11-08 at 13 45 56

File "/config/custom_components/ecodevices/config_flow.py", line 89, in async_step_user
return await self.async_step_params()
File "/config/custom_components/ecodevices/config_flow.py", line 101, in async_step_params
data_schema=vol.Schema(_get_params(self.base_input, user_input)),
File "/config/custom_components/ecodevices/config_flow.py", line 232, in _get_params
default=base_params[CONF_T1_UNIT_OF_MEASUREMENT],
TypeError: 'NoneType' object is not subscriptable

fyi, for custom components you have to put this to set logs level:

logger:
  default: warning
  logs:
    custom_components.ecodevices: debug

still no luck ๐Ÿ˜ญ

CleanShot 2021-11-08 at 15 11 40

CleanShot 2021-11-08 at 15 13 42

CleanShot 2021-11-08 at 15 14 10

I didn't manage to have better logs despite :

CleanShot 2021-11-08 at 15 14 27

can you try 3.0.2 now ๐Ÿ˜…

@Aohzan it works !

btw, when you setup the units in the initial config flow, you cannot reset them later ?

I added a option flow to do thtat, button Configure:
image