add_entities for switchmate (#16368)

pull/16382/head
Daniel Høyer Iversen 2018-09-02 23:05:48 +02:00 committed by Fabian Affolter
parent 4685a2cd97
commit 1966597d5e
1 changed files with 2 additions and 2 deletions

View File

@ -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):