Merge pull request #474 from tfitts/patch-1

Fixed a typo that broke the example.
This commit is contained in:
Rowan 2016-05-13 20:10:02 +01:00
commit 2824520ed2

View File

@ -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)