core: Opower integration fails at setup for Exelon subsidiaries with AttributeError: 'NoneType' object has no attribute 'group'
The problem
Getting the error message “Failed setup, will retry”. It continues to retry and fail.
What version of Home Assistant Core has the issue?
core-2023.8.0b2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Opower
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/peco_opower
Diagnostics information
home-assistant_opower_2023-07-31T00-36-42.172Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
AttributeError: 'NoneType' object has no attribute 'group'
2023-07-30 19:55:15.047 DEBUG (MainThread) [homeassistant.components.opower.coordinator] Finished fetching Opower data in 3.035 seconds (success: False)
2023-07-30 19:55:56.729 ERROR (MainThread) [homeassistant.components.opower.coordinator] Unexpected error fetching Opower data: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/opower/coordinator.py", line 67, in _async_update_data
await self.api.async_login()
File "/usr/local/lib/python3.11/site-packages/opower/opower.py", line 150, in async_login
await self.utility.async_login(self.session, self.username, self.password)
File "/usr/local/lib/python3.11/site-packages/opower/utilities/exelon.py", line 41, in async_login
settings = json.loads(re.search(r"var SETTINGS = ({.*});", result).group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 39 (17 by maintainers)
I’m getting an “Unauthorized” error when trying both the HACS and Official version with Evergy. My user/pass are correct, as I can log into the site and view all my account details. Let me know if you need any additional info.
2023-08-02 17:53:54.499 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Evergy (email.email@gmail.com)' for opower integration not ready yet: 401, message='Unauthorized', url=URL('https://kcpk.opower.com/ei/edge/apis/multi-account-v1/cws/kcpk/customers?offset=0&batchSize=100&addressFilter='); Retrying in background
fwiw, I’m getting same error with a delmarva power account
fyi updated to 2023.8.2 still have the same problem
home-assistant_opower_2023-08-12T00-14-49.607Z.log
Both of the last 2 comments are different issues that should be reported separately. Make sure you can access energy data in your utility website before reporting an issue with the integration. If you can’t access energy data in your utility website raise an issue to your utility, not here.
@home-assistant rename Opower integration fails at setup for Exelon subsidiaries with AttributeError: ‘NoneType’ object has no attribute ‘group’