mirror of
https://github.com/home-assistant/core.git
synced 2025-09-09 14:51:34 +02:00
Fix event affecting multiple probes (#150954)
This commit is contained in:
@@ -56,4 +56,8 @@ class ToGrillEventEntity(ToGrillEntity, EventEntity):
|
||||
message = PacketA5Notify.Message(packet.message)
|
||||
except ValueError:
|
||||
return
|
||||
|
||||
if packet.probe != self._probe_number:
|
||||
return
|
||||
|
||||
self._trigger_event(slugify(message.name))
|
||||
|
@@ -103,7 +103,7 @@
|
||||
# name: test_events[0][event.pro_05_probe_2-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'event_type': 'probe_acknowledge',
|
||||
'event_type': None,
|
||||
'event_types': list([
|
||||
'probe_acknowledge',
|
||||
'probe_alarm',
|
||||
@@ -116,7 +116,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '2023-10-21T00:00:00.000+00:00',
|
||||
'state': 'unknown',
|
||||
})
|
||||
# ---
|
||||
# name: test_events[5][event.pro_05_probe_1-entry]
|
||||
@@ -223,7 +223,7 @@
|
||||
# name: test_events[5][event.pro_05_probe_2-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'event_type': 'probe_alarm',
|
||||
'event_type': None,
|
||||
'event_types': list([
|
||||
'probe_acknowledge',
|
||||
'probe_alarm',
|
||||
@@ -236,7 +236,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '2023-10-21T00:00:00.000+00:00',
|
||||
'state': 'unknown',
|
||||
})
|
||||
# ---
|
||||
# name: test_events[6][event.pro_05_probe_1-entry]
|
||||
@@ -343,7 +343,7 @@
|
||||
# name: test_events[6][event.pro_05_probe_2-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'event_type': 'probe_disconnected',
|
||||
'event_type': None,
|
||||
'event_types': list([
|
||||
'probe_acknowledge',
|
||||
'probe_alarm',
|
||||
@@ -356,7 +356,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '2023-10-21T00:00:00.000+00:00',
|
||||
'state': 'unknown',
|
||||
})
|
||||
# ---
|
||||
# name: test_setup[no_data][event.pro_05_probe_1-entry]
|
||||
|
Reference in New Issue
Block a user