Fix broken ViCare burner & compressor sensors ()

This commit is contained in:
Hans Oischinger 2021-11-03 08:45:22 +01:00 committed by GitHub
parent 58bee8a326
commit a4fc808e49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions
homeassistant/components/vicare

View file

@ -129,14 +129,14 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
all_devices.append(entity)
try:
_entities_from_descriptions(
await _entities_from_descriptions(
hass, name, all_devices, BURNER_SENSORS, api.burners
)
except PyViCareNotSupportedFeatureError:
_LOGGER.info("No burners found")
try:
_entities_from_descriptions(
await _entities_from_descriptions(
hass, name, all_devices, COMPRESSOR_SENSORS, api.compressors
)
except PyViCareNotSupportedFeatureError:

View file

@ -393,14 +393,14 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
all_devices.append(entity)
try:
_entities_from_descriptions(
await _entities_from_descriptions(
hass, name, all_devices, BURNER_SENSORS, api.burners
)
except PyViCareNotSupportedFeatureError:
_LOGGER.info("No burners found")
try:
_entities_from_descriptions(
await _entities_from_descriptions(
hass, name, all_devices, COMPRESSOR_SENSORS, api.compressors
)
except PyViCareNotSupportedFeatureError: