Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Gracefully default model and brand information when they aren't known…
Browse files Browse the repository at this point in the history
… to us already.
  • Loading branch information
hjdhjd committed Aug 17, 2021
1 parent 4cb0a34 commit d637ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/myq-accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export abstract class myQAccessory {

// If we're able to lookup hardware information, use it. getHwInfo returns an object containing
// device type and brand information.
gwProduct = gwInfo?.product;
gwBrand = gwInfo?.brand;
gwBrand = gwInfo?.brand ?? gwBrand;
gwProduct = gwInfo?.product ?? gwProduct;
}

// Update the manufacturer information for this device.
Expand Down

0 comments on commit d637ab0

Please sign in to comment.