Skip to content

Commit

Permalink
Merge branch 'release/2022.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 3, 2022
2 parents 0bfc606 + 920f0a3 commit 22b4f9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
17 changes: 4 additions & 13 deletions custom_components/xiaomi_miio_cooker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
import asyncio
import logging
from collections import defaultdict
from datetime import timedelta
from functools import partial

import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.const import (
ATTR_ENTITY_ID,
CONF_HOST,
CONF_NAME,
CONF_SCAN_INTERVAL,
CONF_TOKEN,
)
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_SCAN_INTERVAL, CONF_TOKEN
from homeassistant.exceptions import PlatformNotReady
from homeassistant.helpers import discovery
from homeassistant.helpers.dispatcher import dispatcher_send
Expand Down Expand Up @@ -94,7 +85,7 @@ def setup(hass, config):

host = config[DOMAIN][CONF_HOST]
token = config[DOMAIN][CONF_TOKEN]
name = config[DOMAIN][CONF_NAME]
# name = config[DOMAIN][CONF_NAME]
model = config[DOMAIN].get(CONF_MODEL)
scan_interval = config[DOMAIN][CONF_SCAN_INTERVAL]

Expand Down Expand Up @@ -211,8 +202,8 @@ def state(self):
return self._state

@property
def device_state_attributes(self):
"""Return the state attributes of the device."""
def extra_state_attributes(self):
"""Return the extra state attributes of the device."""
return self._state_attrs


Expand Down
4 changes: 2 additions & 2 deletions custom_components/xiaomi_miio_cooker/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"domain": "xiaomi_miio_cooker",
"name": "Xiaomi Mi Electric Rice Cooker",
"version": "0.2.7",
"version": "2022.3.0",
"iot_class": "local_polling",
"config_flow": false,
"documentation": "https://github.com/syssi/xiaomi_cooker",
"issue_tracker": "https://github.com/syssi/xiaomi_cooker/issues",
"requirements": [
"construct==2.10.56",
"python-miio>=0.5.9.2"
"python-miio>=0.5.10"
],
"dependencies": [],
"codeowners": [
Expand Down

0 comments on commit 22b4f9b

Please sign in to comment.