Change devolo HomeControl SwitchDevice to SwitchEntity (#36248)

pull/36251/head
Markus Bong 2020-05-29 09:59:44 +02:00 committed by GitHub
parent 6f9770c067
commit 08f2714e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
"""Platform for light integration."""
"""Platform for switch integration."""
import logging
from homeassistant.components.switch import SwitchDevice
from homeassistant.components.switch import SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers.typing import HomeAssistantType
@ -29,8 +29,8 @@ async def async_setup_entry(
async_add_entities(entities)
class DevoloSwitch(SwitchDevice):
"""Representation of an Awesome Light."""
class DevoloSwitch(SwitchEntity):
"""Representation of a switch."""
def __init__(self, homecontrol, device_instance, element_uid):
"""Initialize an devolo Switch."""