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