Tags: skodaconnect/myskoda
Tags
Readme: Adding await to disconnect in basic example (#421) This commit fixes the error shown below when using the basic example from the README. RuntimeWarning: coroutine 'MySkoda.disconnect' was never awaited myskoda.disconnect() RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Debouncer + Refresh API data automatically on MQTT events (#411) * Add debounce decorator for async functions To be used to debounce self-initiated API requests and/or MQTT event processing functions. * Refresh API data automatically on MQTT events This further moves API refreshes on operation and service MQTT events from the integration (coordinator) to the MySkoda class. * BREAKING CHANGE: Refactor MySkoda and MQTT update logic This moves all update logic out of the coordinator and into the MySkoda lib. The coordinator can still subscribe to MQTT events but they are not used for anything and just get exposed in corresponding entities. The coordinator can now subscribe to 'update' events which MySkoda will callback when any Vehicle data was updated for whatever reason (including when it, the MySkoda lib, got an MQTT event). When receiving an update callback the coordinator just has to call async_set_updated_data and pass in the current Vehicle data.
Update vehicle cache with MQTT event data (#407) Handle event callbacks locally in the MySkoda class so that it can process events (and update the local Vehicles accordingly) before emitting the events to the registered callback functions from the client. Fixes skodaconnect/homeassistant-myskoda#731
PreviousNext