Add no-operation support for ext-01

This commit is contained in:
swevictor 2025-08-07 12:27:51 +02:00
parent f6cdbdc155
commit 633f603e52

View file

@ -375,6 +375,14 @@ class PlejdApi {
dimmable: false, dimmable: false,
broadcastClicks: false, broadcastClicks: false,
}; };
case 19:
return {
name: 'EXT-01',
description: 'Plejd mesh extender and battery backup',
type: 'extender',
dimmable: false,
broadcastClicks: false,
};
case 20: case 20:
return { return {
// Unknown, pre-release (?) version, kept for backwards compatibility. See https://github.com/icanos/hassio-plejd/issues/250 // Unknown, pre-release (?) version, kept for backwards compatibility. See https://github.com/icanos/hassio-plejd/issues/250
@ -557,7 +565,7 @@ class PlejdApi {
} }
} }
} else { } else {
// The device does not have an output. It can be assumed to be a WPH-01 or a WRT-01 // The device does not have an output. It can be assumed to be a WPH-01, WRT-01, or EXT-01
// Filter inputSettings for available buttons // Filter inputSettings for available buttons
const inputSettings = this.siteDetails.inputSettings.filter( const inputSettings = this.siteDetails.inputSettings.filter(
(x) => x.deviceId === device.deviceId, (x) => x.deviceId === device.deviceId,