Add reauth for Netatmo when token or token scope is invalid (#57487)
This commit is contained in:
parent
c9966a3b04
commit
3970a50553
9 changed files with 313 additions and 106 deletions
|
@ -33,12 +33,6 @@ async def async_setup_entry(
|
|||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
) -> None:
|
||||
"""Set up the Netatmo camera light platform."""
|
||||
if "access_camera" not in entry.data["token"]["scope"]:
|
||||
_LOGGER.info(
|
||||
"Cameras are currently not supported with this authentication method"
|
||||
)
|
||||
return
|
||||
|
||||
data_handler = hass.data[DOMAIN][entry.entry_id][DATA_HANDLER]
|
||||
|
||||
await data_handler.register_data_class(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue