pylint 2.3.0 (#21485)
* pylint 2.3.0 * remove const * disable=syntax-error
This commit is contained in:
parent
2482816a11
commit
519315f9c8
26 changed files with 47 additions and 57 deletions
|
@ -34,10 +34,10 @@ def setup_platform(hass, config, add_entities, discovery_info=None) -> None:
|
|||
name = config.get(CONF_NAME)
|
||||
mac_addr = config[CONF_MAC]
|
||||
flip_on_off = config[CONF_FLIP_ON_OFF]
|
||||
add_entities([Switchmate(mac_addr, name, flip_on_off)], True)
|
||||
add_entities([SwitchmateEntity(mac_addr, name, flip_on_off)], True)
|
||||
|
||||
|
||||
class Switchmate(SwitchDevice):
|
||||
class SwitchmateEntity(SwitchDevice):
|
||||
"""Representation of a Switchmate."""
|
||||
|
||||
def __init__(self, mac, name, flip_on_off) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue