Skip to content

Commit

Permalink
try to get_away_from_camel_case
Browse files Browse the repository at this point in the history
  • Loading branch information
marq24 committed Nov 25, 2023
1 parent 53eb617 commit 174484f
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 188 deletions.
5 changes: 2 additions & 3 deletions custom_components/senec/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Config flow for senec integration."""
import logging
import voluptuous as vol
from homeassistant.data_entry_flow import FlowResultType

from custom_components.senec.pysenec_ha import Senec, MySenecWebPortal
from custom_components.senec.pysenec_ha import Inverter
Expand Down Expand Up @@ -174,8 +173,8 @@ async def _test_connection_webapi(self, user: str, pwd: str, master_plant:int):
websession = self.hass.helpers.aiohttp_client.async_get_clientsession()
try:
senec_web_client = MySenecWebPortal(user=user, pwd=pwd, websession=websession, master_plant_number=master_plant)
await senec_web_client.authenticate(doUpdate=False, throw401=True)
if senec_web_client._isAuthenticated:
await senec_web_client.authenticate(do_update=False, throw401=True)
if senec_web_client._is_authenticated:
await senec_web_client.update_context()
self._device_master_plant_number = senec_web_client.masterPlantNumber

Expand Down
Loading

0 comments on commit 174484f

Please sign in to comment.