Update in 1 minute on unavailable Motion blinds (#47800)

* if unavailable request update in 1 minute

* fix styling

* improve changing update interval

* remove unused import

* try to fix

* remove unused pass

* add const

* fix missing timedelta

* update to motionblinds 0.4.10

* improve update coordinator

* fix linting errors

* remove unused import

* move update functions within the DataUpdateCoordinator

* fix white space
This commit is contained in:
starkillerOG 2021-03-26 04:06:40 +01:00 committed by GitHub
parent d5afd0afb3
commit b4d39d517f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 103 additions and 23 deletions

View file

@ -11,5 +11,9 @@ KEY_MULTICAST_LISTENER = "multicast_listener"
ATTR_WIDTH = "width"
ATTR_ABSOLUTE_POSITION = "absolute_position"
ATTR_AVAILABLE = "available"
SERVICE_SET_ABSOLUTE_POSITION = "set_absolute_position"
UPDATE_INTERVAL = 600
UPDATE_INTERVAL_FAST = 60