-
Notifications
You must be signed in to change notification settings - Fork 155
Update some feature for device #34
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
base: master
Are you sure you want to change the base?
Conversation
wkd8176
commented
Jul 9, 2019
- mac address for same type device
- model name and model type for specific model division
- option item to get option item for searching each device's support function
- reference comment for looking up reference commene -> korean dryer has korean comment so i used this
- set ac wdirstep for AC's wind direction step function
- delete permission for using mobile app and HA at the same time
- get power data for AC power consumption
- get water usage for water purifier usage
- get dust sensor data for AC dust sensor data which has dust sensor
1. mac address for same type device 2. model name and model type for specific model division 3. option item to get option item for searching each device's support function 4. reference comment for looking up reference commene -> korean dryer has korean comment so i used this 5. set ac wdirstep for AC's wind direction step function 6. delete permission for using mobile app and HA at the same time 7. get power data for AC power consumption 8. get water usage for water purifier usage 9. get dust sensor data for AC dust sensor data which has dust sensor
| DEFAULT_COUNTRY = 'US' | ||
| DEFAULT_LANGUAGE = 'en-US' | ||
| #: Represents an unknown enum value. | ||
| _UNKNOWN = 'Unknown' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some stray whitespace snuck in here (and elsewhere in this file)?
|
|
||
| @property | ||
| def model_type(self): | ||
| """ get model type""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the return type of this function? It would be useful to know what kind of data to expect from the API.
| self.client.session.set_device_controls( | ||
| self.device.id, | ||
| value, | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method doesn't seem to be called anywhere. Can you clarify what it's useful for?
| if code != '0000': | ||
| raise MonitorError(device_id, code) | ||
| else: | ||
| return data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These methods seem to be AC-specific. Maybe they should be located in the ac module?
| from typing import Any, Optional | ||
|
|
||
| from . import core | ||
| from . import core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid indent