After merge, review. (#51139)
This commit is contained in:
parent
fdfb84e8e2
commit
8d365e8bf5
2 changed files with 2 additions and 3 deletions
|
@ -52,8 +52,7 @@ async def async_setup_platform(
|
|||
hub = hass.data[MODBUS_DOMAIN][discovery_info[CONF_NAME]]
|
||||
sensors.append(ModbusRegisterSensor(hub, entry))
|
||||
|
||||
if len(sensors) > 0:
|
||||
async_add_entities(sensors)
|
||||
async_add_entities(sensors)
|
||||
|
||||
|
||||
class ModbusRegisterSensor(BasePlatform, RestoreEntity, SensorEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue