Return empty available programs list if an appliance is off during initial configuration (#90905)

This commit is contained in:
stickpin 2023-04-06 10:38:09 +02:00 committed by GitHub
parent 96c5e845e5
commit e8cbf439e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):