mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
@@ -3,7 +3,7 @@ import logging
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
|
||||
from homeassistant.const import CONF_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
@@ -41,7 +41,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
add_entities(switches)
|
||||
|
||||
|
||||
class ArduinoSwitch(SwitchDevice):
|
||||
class ArduinoSwitch(SwitchEntity):
|
||||
"""Representation of an Arduino switch."""
|
||||
|
||||
def __init__(self, pin, options, board):
|
||||
|
||||
Reference in New Issue
Block a user