Update nest to use async_add_executor_job (#41926)
This commit is contained in:
parent
250fbd857b
commit
965bb2c8df
7 changed files with 10 additions and 8 deletions
|
@ -117,7 +117,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
|||
|
||||
return sensors
|
||||
|
||||
async_add_entities(await hass.async_add_job(get_binary_sensors), True)
|
||||
async_add_entities(await hass.async_add_executor_job(get_binary_sensors), True)
|
||||
|
||||
|
||||
class NestBinarySensor(NestSensorDevice, BinarySensorEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue