Skip to content

Commit

Permalink
Merge branch 'release/2023.6.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Jun 8, 2023
2 parents a52d755 + b7bdc7a commit f56e74d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions custom_components/xiaomi_miio_cooker/manifest.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"domain": "xiaomi_miio_cooker",
"name": "Xiaomi Mi Electric Rice Cooker",
"version": "2022.11.0.0",
"iot_class": "local_polling",
"codeowners": [
"@syssi"
],
"config_flow": false,
"dependencies": [],
"documentation": "https://github.com/syssi/xiaomi_cooker",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/syssi/xiaomi_cooker/issues",
"requirements": [
"construct==2.10.56",
"python-miio>=0.5.12"
],
"dependencies": [],
"codeowners": [
"@syssi"
]
"version": "2023.6.0.0"
}
4 changes: 1 addition & 3 deletions custom_components/xiaomi_miio_cooker/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import logging
from enum import Enum
from typing import Optional
Expand Down Expand Up @@ -67,8 +66,7 @@ def __init__(self, device, host, config):
"{}_{}".format(COOKER_DOMAIN, slugify(self._name))
)

@asyncio.coroutine
def async_added_to_hass(self):
async def async_added_to_hass(self):
"""Register callbacks."""
self.hass.helpers.dispatcher.async_dispatcher_connect(
"{}_updated".format(COOKER_DOMAIN), self.async_update_callback
Expand Down

0 comments on commit f56e74d

Please sign in to comment.