Ensure homekit pairing barcode is usable on dark themes (#38609)

This commit is contained in:
J. Nick Koston 2020-08-06 22:26:43 -05:00 committed by GitHub
parent 297dd9bbc2
commit 5cc7605d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ def show_setup_message(hass, entry_id, bridge_name, pincode, uri):
buffer = io.BytesIO()
url = pyqrcode.create(uri)
url.svg(buffer, scale=5)
url.svg(buffer, scale=5, module_color="#000", background="#FFF")
pairing_secret = secrets.token_hex(32)
hass.data[DOMAIN][entry_id][HOMEKIT_PAIRING_QR] = buffer.getvalue()