Skip to content

Fixes for Get Thermostat List#1

Open
mrnohr wants to merge 2 commits intocopy-ninja:alphafrom
mrnohr:get-thermostat-list
Open

Fixes for Get Thermostat List#1
mrnohr wants to merge 2 commits intocopy-ninja:alphafrom
mrnohr:get-thermostat-list

Conversation

@mrnohr
Copy link

@mrnohr mrnohr commented Feb 27, 2018

There is a case in the getThermostatList() method where you would get a NullPointerException. This happened during the install flow when trying to set the state.data[dni]. state.data gets setup in the initialize() method, which has not been called when building the page.

Since you call getThermostatList() again during initialize(), I just stop writing to state when building the page.

@mrnohr mrnohr changed the base branch from master to alpha February 28, 2018 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant