@@ -158,7 +158,7 @@ def cancel_any_pending_removal(self, mac, source):
158158 task = self ._pending_removals .pop (mac , None )
159159 if task :
160160 task .cancel ()
161- _LOGGER .info (f"Cancelled pending removal for { mac } by { source } ." )
161+ _LOGGER .debug (f"Cancelled pending removal for { mac } by { source } ." )
162162
163163 async def handle_message (self , event : str , message : dict ):
164164 mac = message ['mac' ]
@@ -209,7 +209,6 @@ def _acknowledge_solar_added_to_virtual_household(self, success):
209209 self ._virtual_household_has_been_setup = success
210210
211211 async def _acknowledge_plug_added_to_homeassistant (self , mac_address , host , port , name ):
212- _LOGGER .info (f"Adding new API for mac={ mac_address } , ip={ host } , port={ port } " )
213212 self ._create_api (mac_address , host , port , name )
214213 await self ._plug_added_queue .remove ((mac_address , host , port , name ))
215214
@@ -240,7 +239,7 @@ async def _plug_updated(self, info):
240239 if mac in self .plugs :
241240 current_api : PlugApi = self .plugs [mac ]
242241 if current_api ._listener ._ip == host and current_api ._listener ._port == port :
243- _LOGGER .info (f"Request to update plug with mac { mac } does not alter ip from existing API."
242+ _LOGGER .debug (f"Request to update plug with mac { mac } does not alter ip from existing API."
244243 f"IP still { host } and port is { port } . Skipping update..." )
245244 return
246245 await current_api .disconnect ()
@@ -266,7 +265,7 @@ async def _schedule_plug_removal(self, name, info):
266265 # removal for this service is already pending
267266 return
268267
269- _LOGGER .info (f"Scheduling removal for { name } " )
268+ _LOGGER .debug (f"Scheduling removal for { name } " )
270269 self ._pending_removals [mac ] = self ._hass .async_create_background_task (
271270 self ._delayed_plug_remove (name ,mac ),
272271 name = f"Removal-Task-For-{ name } "
@@ -279,14 +278,14 @@ async def _delayed_plug_remove(self, name, mac):
279278 """Actually process the removal after delay."""
280279 try :
281280 await asyncio .sleep (self ._debounce_seconds )
282- _LOGGER .info (f"Request to remove plug { mac } still pending after timeout. Processing remove request..." )
281+ _LOGGER .debug (f"Request to remove plug { mac } still pending after timeout. Processing remove request..." )
283282 await self .plugs [mac ].disconnect ()
284283 del self .plugs [mac ]
285284 del self ._known_plug_names [name ]
286285 _LOGGER .info (f"API for plug { mac } disconnected and removed." )
287286 except asyncio .CancelledError :
288287 # Task was canceled because service came back
289- _LOGGER .info (f"Request to remove plug { mac } was cancelled by request to update, add plug or new message." )
288+ _LOGGER .debug (f"Request to remove plug { mac } was cancelled by request to update, add plug or new message." )
290289 raise
291290 finally :
292291 # Either way were done with this task
0 commit comments