mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
add null check to all internal device LinkToApi methods
This allows for backwards compatability with EiscApi bridges.
This commit is contained in:
parent
6b6604b7a9
commit
f98292a4aa
23 changed files with 189 additions and 39 deletions
|
|
@ -158,7 +158,14 @@ namespace PepperDash.Essentials.Core
|
|||
if (!string.IsNullOrEmpty(joinMapSerialized))
|
||||
joinMap = JsonConvert.DeserializeObject<Hrxxx0WirelessRemoteControllerJoinMap>(joinMapSerialized);
|
||||
|
||||
bridge.AddJoinMap(Key, joinMap);
|
||||
if (bridge != null)
|
||||
{
|
||||
bridge.AddJoinMap(Key, joinMap);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Console(0, this, "Please update config to use 'eiscapiadvanced' to get all join map features for this device.");
|
||||
}
|
||||
|
||||
//List<string> ExcludedKeys = new List<string>();
|
||||
foreach (var feedback in Feedbacks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue