Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ha0y committed Feb 10, 2021
1 parent 185e485 commit b2b8d67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Xiaomi MIoT Raw
# Xiaomi MIoT

[简体中文](https://github.com/ha0y/xiaomi_miot_raw/blob/add-miot-support/README_cn.md) | English
> 应 HACS 要求,临时修改默认 README 语言为英语。[点击此处查看中文说明](https://github.com/ha0y/xiaomi_miot_raw/blob/add-miot-support/README_cn.md)
Expand All @@ -19,7 +19,7 @@ Currently this custom component supports:
* Copy the custom_component folder to your Home Assistant configuration folder

or
* Add this repo ([https://github.com/ha0y/xiaomi_miot_raw](https://github.com/ha0y/xiaomi_miot_raw)) to [HACS](https://hacs.xyz/), then add "Xiaomi MiOT Raw"
* From [HACS](https://hacs.xyz/), search and add [Xiaomi MIoT](https://github.com/ha0y/xiaomi_miot_raw)


## Configuration file
Expand Down
4 changes: 2 additions & 2 deletions README_cn.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Xiaomi MIoT Raw
# Xiaomi MIoT

简体中文 | [English](https://github.com/ha0y/xiaomi_miot_raw/blob/add-miot-support/README_en.md)

Expand Down Expand Up @@ -35,7 +35,7 @@ MIoT 协议是小米智能家居从 2018 年起推行的智能设备通信协议
* 将 custom_component 文件夹中的内容拷贝至自己的相应目录

或者
* 将此 repo ([https://github.com/ha0y/xiaomi_miot_raw](https://github.com/ha0y/xiaomi_miot_raw)) 添加到 [HACS](https://hacs.xyz/),然后添加“Xiaomi MiOT Raw
* [HACS](https://hacs.xyz/) 商店中,直接搜索添加“[Xiaomi MIoT](https://github.com/ha0y/xiaomi_miot_raw)


## 配置
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot_raw/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
for t in MAP[TYPE]:
if mapping.get(t):
other_mi_type.append(t)
if 'main' in (mapping.get(t) or ""):
if 'main' in (params.get(t) or ""):
main_mi_type = t

try:
Expand Down
4 changes: 2 additions & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{
"name": "Xiaomi MIoT Raw",
"name": "Xiaomi MIoT",
"content_in_root": false,
"render_readme": true,
"iot_class": "local_polling"
Expand Down

0 comments on commit b2b8d67

Please sign in to comment.