Skip to content

Commit

Permalink
Update myskoda to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Prior99 committed Sep 25, 2024
1 parent ac58033 commit be64ec4
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 130 deletions.
9 changes: 5 additions & 4 deletions custom_components/myskoda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers.aiohttp_client import async_create_clientsession
from homeassistant.util.ssl import get_default_context
from myskoda import TRACE_CONFIG, MySkoda
from myskoda import MySkoda
from myskoda.myskoda import TRACE_CONFIG

from .const import COORDINATORS, DOMAIN
from .coordinator import MySkodaDataUpdateCoordinator
Expand All @@ -33,14 +34,14 @@ async def async_setup_entry(hass: HomeAssistant, config: ConfigEntry) -> bool:
if config.options.get("tracing"):
trace_configs.append(TRACE_CONFIG)
session = async_create_clientsession(hass, trace_configs=trace_configs)
myskoda = MySkoda(session)
myskoda = MySkoda(session, get_default_context())

try:
await myskoda.connect(
config.data["email"], config.data["password"], get_default_context()
config.data["email"], config.data["password"]
)
except Exception:
_LOGGER.error("Login with MySkoda failed.")
_LOGGER.exception("Login with MySkoda failed.")
return False

coordinators: dict[str, MySkodaDataUpdateCoordinator] = {}
Expand Down
4 changes: 2 additions & 2 deletions custom_components/myskoda/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/skodaconnect/homeassistant-myskoda/issues",
"loggers": ["custom_components.myskoda", "myskoda"],
"requirements": ["myskoda==0.5.1"],
"version": "1.3.0"
"requirements": ["myskoda==0.6.0"],
"version": "1.4.0"
}
Loading

0 comments on commit be64ec4

Please sign in to comment.