From a0ad7e84ab454407d39010157b10e76eff3366c7 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 19 Sep 2023 20:04:22 +0200 Subject: [PATCH] feat: hide Moonraker power devices with a `_` as first char (#1545) --- src/components/TheTopCornerMenu.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/TheTopCornerMenu.vue b/src/components/TheTopCornerMenu.vue index 97241b62..0690a443 100644 --- a/src/components/TheTopCornerMenu.vue +++ b/src/components/TheTopCornerMenu.vue @@ -238,7 +238,9 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) { } get powerDevices() { - return this.$store.getters['server/power/getDevices'] + const devices = this.$store.getters['server/power/getDevices'] ?? [] + + return devices.filter((device: ServerPowerStateDevice) => !device.device.startsWith('_')) } get service_states() {