mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Merge pull request #474 from tfitts/patch-1
Fixed a typo that broke the example.
This commit is contained in:
commit
2824520ed2
@ -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…
x
Reference in New Issue
Block a user