From 1966597d5ef4fd8536401d3531ebd219aa9f4de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Sun, 2 Sep 2018 23:05:48 +0200 Subject: [PATCH] add_entities for switchmate (#16368) --- homeassistant/components/switch/switchmate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/switchmate.py b/homeassistant/components/switch/switchmate.py index 6ce4421ebc8..7ccd3bee4b6 100644 --- a/homeassistant/components/switch/switchmate.py +++ b/homeassistant/components/switch/switchmate.py @@ -31,11 +31,11 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -def setup_platform(hass, config, add_devices, discovery_info=None) -> None: +def setup_platform(hass, config, add_entities, discovery_info=None) -> None: """Perform the setup for Switchmate devices.""" name = config.get(CONF_NAME) mac_addr = config.get(CONF_MAC) - add_devices([Switchmate(mac_addr, name)], True) + add_entities([Switchmate(mac_addr, name)], True) class Switchmate(SwitchDevice):