fix device update handler
This commit is contained in:
parent
7656ac7212
commit
c26e379dd7
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,11 @@ defmodule ToweropsWeb.DeviceLive.Show do
|
|||
{:noreply, load_equipment_data(socket, socket.assigns.device.id)}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:state_sensors_updated, _device_id}, socket) do
|
||||
{:noreply, load_equipment_data(socket, socket.assigns.device.id)}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:monitoring_check_updated, _device_id}, socket) do
|
||||
{:noreply, load_equipment_data(socket, socket.assigns.device.id)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue