Skip to content

Commit

Permalink
Merge pull request #316 from guyluz11/dev
Browse files Browse the repository at this point in the history
Fix null crash for chromecast device
  • Loading branch information
guyluz11 authored Apr 28, 2023
2 parents ee17a2b + aff5247 commit 19adef4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ class ChromeCastEntity extends GenericSmartTvDE {

Future<void> setUpNodeRedApi() async {
// TODO: add check to add uniqueId + action as flow in node read only if missing
if (lastKnownIp == null) {
logger.w('Chromecast last known ip is null');
return;
}
chromecastNodeRedApi = ChromecastNodeRedApi();
chromecastNodeRedApi.setNewYoutubeVideoNodes(
uniqueId.getOrCrash(),
Expand Down

0 comments on commit 19adef4

Please sign in to comment.