Gogogate2 0.1.1#14294
Conversation
Uses latest version of library which ensures commands to device are idempotent
| def state_attributes(self): | ||
| """Return the state attributes.""" | ||
| data = super().state_attributes | ||
| data[ATTR_TEMPERATURE] = self._temperature |
| def supported_features(self): | ||
| """Flag supported features.""" | ||
| return SUPPORT_OPEN | SUPPORT_CLOSE | ||
|
|
|
Please fix the build error! |
| def state_attributes(self): | ||
| """Return the state attributes.""" | ||
| data = super().state_attributes | ||
| data[ATTR_TEMPERATURE] = self._temperature |
There was a problem hiding this comment.
This should not be added as an attribute but instead be made into it's own sensor. This means that you will need to greate a gogogate2 component to handle the connection and then setup the cover and sensor platforms.
There was a problem hiding this comment.
Fair enough. For now, I'll update the PR to get the bug fix in and look at adding the component/sensors later.
For additional data points such as battery_level of the garage tilt sensor - should that be added as an attribute of the cover platform or should it be its own sensor too?
Removed temperature attribute until it can be re-implemented as a separate sensor.
| ip_address = config.get(CONF_IP_ADDRESS) | ||
| name = config.get(CONF_NAME) | ||
| password = config.get(CONF_PASSWORD) | ||
| username = config.get(CONF_USERNAME) |
There was a problem hiding this comment.
unexpected spaces around keyword / parameter equals
| password = config.get(CONF_PASSWORD) | ||
| ip_address = config.get(CONF_IP_ADDRESS) | ||
| name = config.get(CONF_NAME) | ||
| password = config.get(CONF_PASSWORD) |
There was a problem hiding this comment.
unexpected spaces around keyword / parameter equals
* Gogogate2 - bump version Uses latest version of library which ensures commands to device are idempotent * Update requirements_all * Expose sensor temperature * update version * import attribute * Set temperature * Remove temperature attribute Removed temperature attribute until it can be re-implemented as a separate sensor. * Update ordering * Fix copy-&-paste issue
Description:
Update to use latest version of gogogate2 component. Expose device temperature as attribute
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed: