1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +00:00

Update HAP-python to 2.1.0 (#14528)

This commit is contained in:
cdce8p
2018-05-18 16:32:57 +02:00
committed by GitHub
parent d36996c8f0
commit 12e76ef7c1
8 changed files with 56 additions and 48 deletions

View File

@@ -38,9 +38,9 @@ def validate_entity_config(values):
return entities
def show_setup_message(hass, bridge):
def show_setup_message(hass, pincode):
"""Display persistent notification with setup information."""
pin = bridge.pincode.decode()
pin = pincode.decode()
_LOGGER.info('Pincode: %s', pin)
message = 'To setup Home Assistant in the Home App, enter the ' \
'following code:\n### {}'.format(pin)