Skip to content

Commit

Permalink
rfxtrx config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielhiversen authored and balloob committed Apr 19, 2016
1 parent 5b0ab5c commit 16fe7dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions homeassistant/components/rfxtrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def validate_packetid(value):

CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(ATTR_DEVICE): VALID_DEVICE_ID,
vol.Required(ATTR_DEVICE): cv.string,
vol.Optional(ATTR_DEBUG, default=False): cv.boolean,
vol.Optional(ATTR_DUMMY, default=False): cv.boolean,
}),
Expand Down Expand Up @@ -188,7 +188,7 @@ def apply_received_command(event):
# Check if entity exists or previously added automatically
if device_id in RFX_DEVICES:
_LOGGER.debug(
"EntityID: %s light_update. Command: %s",
"EntityID: %s device_update. Command: %s",
device_id,
event.values['Command']
)
Expand Down Expand Up @@ -257,7 +257,7 @@ def should_fire_event(self):

@property
def is_on(self):
"""Return true if light is on."""
"""Return true if device is on."""
return self._state

@property
Expand All @@ -266,7 +266,7 @@ def assumed_state(self):
return True

def turn_off(self, **kwargs):
"""Turn the light off."""
"""Turn the device off."""
self._send_command("turn_off")

def _send_command(self, command, brightness=0):
Expand Down

0 comments on commit 16fe7dd

Please sign in to comment.