Improve not implemented method warning

This commit is contained in:
Edward Brown 2025-11-24 15:19:08 +00:00
parent caa19f016d
commit 1604e2447e
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class AnnounceTopicState(AnnounceTopic):
value_raw = method(value)
except NotImplementedError:
logger.warning(f'No method implemented for {self.__class__.__name__}.{self.callback_name}: {self.topic}')
logger.warning(f'No method implemented for {self.capability.control.__class__.__name__}.{self.callback_name}: {self.topic}')
return
await self.capability.control.device.client.publish(self.topic, value_raw)
@ -120,7 +120,7 @@ class AnnounceTopicCommand(AnnounceTopic):
value_raw = method(value)
except NotImplementedError:
logger.warning(f'No method implemented for {self.topic}')
logger.warning(f'{self.capability.control.__class__.__name__}.{self.callback_name}: {self.topic}')
return
# Echo back as new state