From 5c95dc833fec7261b80ac204624173698d0b79cd Mon Sep 17 00:00:00 2001 From: Sleevezipper Date: Sat, 4 Sep 2021 15:38:59 +0200 Subject: [PATCH] #58 Don't set LastActive and LastBoot sensors to unavailable --- hass-workstation-service/Domain/Sensors/LastActiveSensor.cs | 1 - hass-workstation-service/Domain/Sensors/LastBootSensor.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/hass-workstation-service/Domain/Sensors/LastActiveSensor.cs b/hass-workstation-service/Domain/Sensors/LastActiveSensor.cs index a6555a7..a6e4ccc 100644 --- a/hass-workstation-service/Domain/Sensors/LastActiveSensor.cs +++ b/hass-workstation-service/Domain/Sensors/LastActiveSensor.cs @@ -18,7 +18,6 @@ namespace hass_workstation_service.Domain.Sensors Device = this.Publisher.DeviceConfigModel, State_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/{this.ObjectId}/state", Icon = "mdi:clock-time-three-outline", - Availability_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/availability", Device_class = "timestamp" }); } diff --git a/hass-workstation-service/Domain/Sensors/LastBootSensor.cs b/hass-workstation-service/Domain/Sensors/LastBootSensor.cs index 7d2230a..8b5a29c 100644 --- a/hass-workstation-service/Domain/Sensors/LastBootSensor.cs +++ b/hass-workstation-service/Domain/Sensors/LastBootSensor.cs @@ -22,7 +22,6 @@ namespace hass_workstation_service.Domain.Sensors Device = this.Publisher.DeviceConfigModel, State_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/{this.ObjectId}/state", Icon = "mdi:clock-time-three-outline", - Availability_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/availability", Device_class = "timestamp" }); }