Remove unneeded time fetch in mqtt discovery (#118208)

This commit is contained in:
J. Nick Koston 2024-05-26 18:07:27 -10:00 committed by GitHub
parent 25f199c39c
commit c391d73fec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ async def async_start( # noqa: C901
@callback
def async_discovery_message_received(msg: ReceiveMessage) -> None: # noqa: C901
"""Process the received message."""
mqtt_data.last_discovery = time.monotonic()
mqtt_data.last_discovery = msg.timestamp
payload = msg.payload
topic = msg.topic
topic_trimmed = topic.replace(f"{discovery_topic}/", "", 1)