mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Return empty available programs list if an appliance is off during initial configuration (#90905)
This commit is contained in:
parent
96c5e845e5
commit
e8cbf439e5
@ -151,7 +151,7 @@ class DeviceWithPrograms(HomeConnectDevice):
|
||||
programs_available = self.appliance.get_programs_available()
|
||||
except (HomeConnectError, ValueError):
|
||||
_LOGGER.debug("Unable to fetch available programs. Probably offline")
|
||||
programs_available = None
|
||||
programs_available = []
|
||||
return programs_available
|
||||
|
||||
def get_program_switches(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user