tronikos / opower

A Python library for getting historical and forecasted usage/cost from utilities that use opower.com such as PG&E
Apache License 2.0
62 stars 55 forks source link

Can't log in to SMUD via HA plugin #97

Open lwalkera opened 1 day ago

lwalkera commented 1 day ago

Here is the error:

  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/opower/config_flow.py", line 50, in _validate_login
    await api.async_login()
  File "/srv/homeassistant/lib/python3.12/site-packages/opower/opower.py", line 199, in async_login
    self.access_token = await self.utility.async_login(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/opower/utilities/smud.py", line 294, in async_login
    saml_response = parser2.saml_response
                    ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SMUDOktaResponseSamlResponseValueParser' object has no attribute 'saml_response'

@andylittle FYI

tronikos commented 1 day ago

@BrianHenryIE could you take a look and fix?