natekspencer / hacs-vivint

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

Home Assistant 12.10 broke Vivint #35

Closed 007GTCS closed 2 years ago

007GTCS commented 2 years ago

Upgrading to home assistant 12.10 broke the integrating. See the log below

This error originated from a custom integration.

Logger: homeassistant.config_entries Source: custom_components/vivint/hub.py:94 Integration: Vivint (documentation, issues) First occurred: 10:39:29 PM (1 occurrences) Last logged: 10:39:29 PM

Error setting up entry username@gmail.com for vivint 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 PNConfiguration.validate_not_empty_string(self.uuid) File "/usr/local/lib/python3.9/site-packages/pubnub/pnconfiguration.py", line 41, in validate_not_empty_string assert value and isinstance(value, str) and value.strip() != "", "UUID missing or invalid type" AssertionError: UUID missing or invalid type

mat1583 commented 2 years ago

Confirming, with the same error. Reverting to previous version at the moment.

ruikenshin commented 2 years ago

confirmed as well...does work in 12.9 but is broken in 12.10 release

apercrcl01 commented 2 years ago

Confirmed. Reverted back to 12.9

natekspencer commented 2 years ago

Pubnub released a breaking change yesterday which caused the issue. The upgrade to HA 12.10 just allowed for it to be updated as well. I've limited the version in vivintpy and updated the requirement in release 2022.1.0, so this should be fixed.

mat1583 commented 2 years ago

Thanks once again for the quick response and fix!