Closed joshepw closed 1 year ago
@joshepw Thanks for your work.
Can you please indicate me where you added the logic to hande https://github.com/KiraPC/ha-switchbot-remote/issues/8?
@joshepw Thanks for your work.
Can you please indicate me where you added the logic to hande #8?
Most entities classes have this methods:
def _async_update_power(self, state)
async def _async_power_sensor_changed(self, entity_id, old_state, new_state)
async def async_added_to_hass(self):
method have the logic with async_track_state_change(self.hass, self._power_sensor, self._async_power_sensor_changed)
@joshepw ah ok sorry. I confused the issue.
Let me merge it on dev and create a first beta.
If you can test the beta i'll publish the stable release.
@KiraPC I test the beta version (0.2.2-beta.2
), all work fine, only please check the italian translation because i used a translator.
All the code was tested and also the functionalities with real devices!
Feel free to publish to production