Fix withings wrong sleep state entry (#29651)
* Fixing issue where wrong sleep state entry was being used. closes #28370,#29397 * Fixing formatting. * Sorting imports to get black checks to pass. * Using lambda for getting latest sleep serie.
This commit is contained in:
1 parent
899f6cf1a3
commit
66d2f5f61d
5 files changed
+43
-23
No files matched your search
@@ -7,11 +7,11 @@ import voluptuous as vol
|
||||
from withings_api import WithingsAuth
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.helpers import config_entry_oauth2_flow, config_validation as cv
|
||||
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
|
||||
from homeassistant.helpers import config_validation as cv, config_entry_oauth2_flow
|
||||
|
||||
from . import config_flow, const
|
||||
from .common import _LOGGER, get_data_manager, NotAuthenticatedError
|
||||
from .common import _LOGGER, NotAuthenticatedError, get_data_manager
|
||||
|
||||
DOMAIN = const.DOMAIN
|
||||
|
||||
|
||||
Reference in new issue
Block a user