natekspencer / hacs-vivint

Home Assistant integration for a Vivint home security system.
MIT License
66 stars 6 forks source link

integration fails after upgrade to home-assistant-core 2021.12.10 #36

Closed tafypz closed 2 years ago

tafypz commented 2 years ago

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/vivint/init.py", line 59, in async_setup_entry await hub.login(load_devices=True, subscribe_for_realtime_updates=True) File "/config/custom_components/vivint/hub.py", line 94, in login await self.account.connect( File "/usr/local/lib/python3.9/site-packages/vivintpy/account.py", line 72, in connect await self.subscribe_for_realtime_updates(authuser_data) File "/usr/local/lib/python3.9/site-packages/vivintpy/account.py", line 167, in subscribe_for_realtime_updates self.pubnub = PubNubAsyncio(pnconfig) File "/usr/local/lib/python3.9/site-packages/pubnub/pubnub_asyncio.py", line 38, in init super(PubNubAsyncio, self).init(config) File "/usr/local/lib/python3.9/site-packages/pubnub/pubnub_core.py", line 78, in init__ self.config.validate() File "/usr/local/lib/python3.9/site-packages/pubnub/pnconfiguration.py", line 38, in validate def validate(self): File "/usr/local/lib/python3.9/site-packages/pubnub/pnconfiguration.py", line 41, in validate_not_empty_string if not self.uuid: AssertionError: UUID missing or invalid type

tschmorleiz commented 2 years ago

@tafypz Was fixed for me after updating the Vivint integration through HACS.

natekspencer commented 2 years ago

Duplicate of #35. Fixed in latest release

tafypz commented 2 years ago

@tafypz Was fixed for me after updating the Vivint integration through HACS.

I updated to the latest vivint prior to updating to 2021.12.10, this caused the problem

natekspencer commented 2 years ago

@tafypz you may need to reinstall this integration and restart HA again then as this issue is caused by this:

https://github.com/pubnub/python/releases/tag/v6.0.0

Which was corrected in this:

https://github.com/natekspencer/vivintpy/releases/tag/2022.1.0

Which was then corrected in this:

https://github.com/natekspencer/hacs-vivint/releases/tag/2022.1.0