Modified config flow, introduced device deletion
This commit is contained in:
@@ -71,7 +71,7 @@ class TuyaDiscovery(asyncio.DatagramProtocol):
|
||||
|
||||
def device_found(self, device):
|
||||
"""Discover a new device."""
|
||||
if device.get("ip") not in self.devices:
|
||||
if device.get("gwId") not in self.devices:
|
||||
self.devices[device.get("gwId")] = device
|
||||
_LOGGER.debug("Discovered device: %s", device)
|
||||
|
||||
|
Reference in New Issue
Block a user