From 96d20a64d5cc6575f3a90cd53589c8d3d3a351ba Mon Sep 17 00:00:00 2001 From: SNoof85 Date: Fri, 11 Jan 2019 02:13:29 +0100 Subject: [PATCH] add_entities -> async_add_entities (#19943) Better state handling at HA startup --- homeassistant/components/sensor/freebox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/sensor/freebox.py b/homeassistant/components/sensor/freebox.py index cc737d2d398..2f8ccbc745d 100644 --- a/homeassistant/components/sensor/freebox.py +++ b/homeassistant/components/sensor/freebox.py @@ -15,13 +15,13 @@ _LOGGER = logging.getLogger(__name__) async def async_setup_platform( - hass, config, add_entities, discovery_info=None): + hass, config, async_add_entities, discovery_info=None): """Set up the sensors.""" fbx = hass.data[DATA_FREEBOX] - add_entities([ + async_add_entities([ FbxRXSensor(fbx), FbxTXSensor(fbx) - ]) + ], True) class FbxSensor(Entity):