Skip to content

Commit 2c781a7

Browse files
committed
one more cleanup...
1 parent ada950d commit 2c781a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/powersensor/PowersensorMessageDispatacher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ async def _plug_remove(self,name, info):
209209
if mac in self.plugs:
210210
await self.plugs[mac].disconnect()
211211
del self.plugs[mac]
212+
del self._known_plug_names[name]
212213
else:
213214
_LOGGER.warning(f"Received request to delete api for gateway with name [{name}], but this name"
214215
f"is not associated with an existing PlugAPI. Ignoring...")

0 commit comments

Comments
 (0)