FlagX / ha-ledvance-tuya-resync-localkey

pyscript for homeassistant to resync local keys from private tuya api
MIT License
108 stars 17 forks source link

[NOTE] Title for LocalTuya might break the pyscript service. #22

Closed grizmin closed 5 months ago

grizmin commented 5 months ago

Note, that title is configurable in HomeAssistant and it might not equal 'localtuya', which will break the service without proper logging.

    for entryId in hass.config_entries._entries:
        entry = hass.config_entries.async_get_entry(entryId)
        if (entry.title == 'localtuya'):