mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Merge pull request #4042 from sdague/typo
fix typos in script module strings
This commit is contained in:
commit
a8c5c995a0
@ -51,7 +51,7 @@ SCRIPT_TURN_ONOFF_SCHEMA = vol.Schema({
|
|||||||
|
|
||||||
|
|
||||||
def is_on(hass, entity_id):
|
def is_on(hass, entity_id):
|
||||||
"""Return if the switch is on based on the statemachine."""
|
"""Return if the script is on based on the statemachine."""
|
||||||
return hass.states.is_state(entity_id, STATE_ON)
|
return hass.states.is_state(entity_id, STATE_ON)
|
||||||
|
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ class ScriptEntity(ToggleEntity):
|
|||||||
return self.script.is_running
|
return self.script.is_running
|
||||||
|
|
||||||
def turn_on(self, **kwargs):
|
def turn_on(self, **kwargs):
|
||||||
"""Turn the entity on."""
|
"""Turn the script on."""
|
||||||
self.script.run(kwargs.get(ATTR_VARIABLES))
|
self.script.run(kwargs.get(ATTR_VARIABLES))
|
||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user