mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
Merge branch 'main' into mc-messenger-improvements
This commit is contained in:
commit
5120b2b574
11 changed files with 279 additions and 328 deletions
|
|
@ -499,15 +499,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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue