feat: hide Moonraker power devices with a _ as first char (#1545)

This commit is contained in:
Stefan Dej authored and GitHub committed 2023-09-19 20:04:22 +02:00
1 parent 9a2328ba69
commit a0ad7e84ab
1 file changed
+3 -1
+3 -1
View File
@@ -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() {