mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Cleanup if discovered mqtt light can't be added (#19740)
* Cleanup if discovered mqtt light can't be added * No bare except * Clear ALREADY_DISCOVERED list with helper * Use constant instead of string literal
This commit is contained in:
committed by
Paulus Schoutsen
parent
a1da6a677a
commit
d84cd01cbf
@@ -112,7 +112,7 @@ PLATFORM_SCHEMA_BASIC = mqtt.MQTT_RW_PLATFORM_SCHEMA.extend({
|
||||
mqtt.MQTT_JSON_ATTRS_SCHEMA.schema)
|
||||
|
||||
|
||||
async def async_setup_entity_basic(hass, config, async_add_entities,
|
||||
async def async_setup_entity_basic(config, async_add_entities,
|
||||
discovery_hash=None):
|
||||
"""Set up a MQTT Light."""
|
||||
config.setdefault(
|
||||
|
||||
Reference in New Issue
Block a user