Fixed a typo that broke the example.
This commit is contained in:
parent
aaab3c7e82
commit
c05fc4fdfe
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def setup(hass, config):
|
||||||
def handle_hello(call):
|
def handle_hello(call):
|
||||||
name = call.data.get(ATTR_NAME, DEFAULT_NAME)
|
name = call.data.get(ATTR_NAME, DEFAULT_NAME)
|
||||||
|
|
||||||
hass.states.set('hello.service.hello', name)
|
hass.states.set('hello_service.hello', name)
|
||||||
|
|
||||||
hass.services.register(DOMAIN, 'hello', handle_hello)
|
hass.services.register(DOMAIN, 'hello', handle_hello)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue