Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update switch.py #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/custom_components/cooper_controllers/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import logging

from homeassistant.components.switch import SwitchDevice
from homeassistant.components.switch import SwitchEntity
from homeassistant.components.zwave.const import SERVICE_SET_NODE_VALUE, SERVICE_REFRESH_NODE_VALUE
from homeassistant.helpers.event import async_track_state_change, async_call_later

Expand Down Expand Up @@ -32,7 +32,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
add_entities(switches)


class CooperControllerSwitch(SwitchDevice):
class CooperControllerSwitch(SwitchEntity):
"""A Cooper Controller button."""

def __init__(self, node_id, controller, button):
Expand Down