mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix broken ViCare burner & compressor sensors (#58962)
This commit is contained in:
parent
58bee8a326
commit
a4fc808e49
@ -129,14 +129,14 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||||||
all_devices.append(entity)
|
all_devices.append(entity)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_entities_from_descriptions(
|
await _entities_from_descriptions(
|
||||||
hass, name, all_devices, BURNER_SENSORS, api.burners
|
hass, name, all_devices, BURNER_SENSORS, api.burners
|
||||||
)
|
)
|
||||||
except PyViCareNotSupportedFeatureError:
|
except PyViCareNotSupportedFeatureError:
|
||||||
_LOGGER.info("No burners found")
|
_LOGGER.info("No burners found")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_entities_from_descriptions(
|
await _entities_from_descriptions(
|
||||||
hass, name, all_devices, COMPRESSOR_SENSORS, api.compressors
|
hass, name, all_devices, COMPRESSOR_SENSORS, api.compressors
|
||||||
)
|
)
|
||||||
except PyViCareNotSupportedFeatureError:
|
except PyViCareNotSupportedFeatureError:
|
||||||
|
@ -393,14 +393,14 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||||||
all_devices.append(entity)
|
all_devices.append(entity)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_entities_from_descriptions(
|
await _entities_from_descriptions(
|
||||||
hass, name, all_devices, BURNER_SENSORS, api.burners
|
hass, name, all_devices, BURNER_SENSORS, api.burners
|
||||||
)
|
)
|
||||||
except PyViCareNotSupportedFeatureError:
|
except PyViCareNotSupportedFeatureError:
|
||||||
_LOGGER.info("No burners found")
|
_LOGGER.info("No burners found")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_entities_from_descriptions(
|
await _entities_from_descriptions(
|
||||||
hass, name, all_devices, COMPRESSOR_SENSORS, api.compressors
|
hass, name, all_devices, COMPRESSOR_SENSORS, api.compressors
|
||||||
)
|
)
|
||||||
except PyViCareNotSupportedFeatureError:
|
except PyViCareNotSupportedFeatureError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user