mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
fix: use IBasicVolumeControls to build DeviceVolumeMessenger
This commit is contained in:
@@ -486,15 +486,15 @@ namespace PepperDash.Essentials
|
||||
messengerAdded = true;
|
||||
}
|
||||
|
||||
if (device is IBasicVolumeWithFeedback)
|
||||
if (device is IBasicVolumeControls)
|
||||
{
|
||||
var deviceKey = device.Key;
|
||||
this.LogVerbose(
|
||||
"Adding IBasicVolumeControlWithFeedback for {deviceKey}",
|
||||
"Adding IBasicVolumeControls for {deviceKey}",
|
||||
deviceKey
|
||||
);
|
||||
|
||||
var volControlDevice = device as IBasicVolumeWithFeedback;
|
||||
var volControlDevice = device as IBasicVolumeControls;
|
||||
var messenger = new DeviceVolumeMessenger(
|
||||
$"{device.Key}-volume-{Key}",
|
||||
string.Format("/device/{0}", deviceKey),
|
||||
|
||||
Reference in New Issue
Block a user