Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle no operation mode #1901

Merged
merged 3 commits into from
Oct 28, 2018
Merged

Handle no operation mode #1901

merged 3 commits into from
Oct 28, 2018

Conversation

balloob
Copy link
Member

@balloob balloob commented Oct 28, 2018

Type the climate entity component and handle the missed cases.

Fixes #1881

For domain specific cards, we should take the types from the docs. (and probably fill them in if they don't exist)

@ghost ghost assigned balloob Oct 28, 2018
@ghost ghost added the in progress label Oct 28, 2018
src/types.ts Outdated
@@ -85,3 +86,27 @@ export interface HomeAssistant {
sendWS: (msg: MessageBase) => Promise<void>;
callWS: <T>(msg: MessageBase) => Promise<T>;
}

export type ClimateEntity = HassEntity & {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kinda annoying as HassEntity also defines attributes = {[s: string]: any}, which means autocomplete doesn't work. I opened home-assistant/home-assistant-js-websocket#64 to address that. Will update this in a future PR.

@balloob balloob merged commit a4fa0ae into dev Oct 28, 2018
@ghost ghost removed the in progress label Oct 28, 2018
@balloob balloob deleted the handle-no-operation-mode branch October 28, 2018 19:07
@zsarnett zsarnett added this to the 0.81.3 milestone Oct 31, 2018
balloob added a commit that referenced this pull request Nov 2, 2018
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lovelace thermostat card broken if operation_list absent
4 participants