feat: fix lua query and download logic

This commit is contained in:
sususweet
2025-09-28 21:47:15 +08:00
parent 57342ad86c
commit 068d9a377d
5 changed files with 5 additions and 1 deletions

View File

@@ -347,6 +347,7 @@ class MeijuCloud(MideaCloud):
"applianceMFCode": manufacturer_code,
'version': "0",
"iotAppId": self.APP_ID,
"modelNumber": model_number
}
fnm = None
if response := await self._api_request(

View File

@@ -6,6 +6,7 @@ from homeassistant.components.switch import SwitchDeviceClass
DEVICE_MAPPING = {
"default": {
"rationale": [0, 1],
"queries": [{}],
"calculate": {
"get": [
{

View File

@@ -6,6 +6,7 @@ from homeassistant.components.switch import SwitchDeviceClass
DEVICE_MAPPING = {
"default": {
"rationale": [0, 1],
"queries": [{}],
"calculate": {
"get": [
{

View File

@@ -33,7 +33,6 @@ DEVICE_MAPPING = {
"entities": {
Platform.WATER_HEATER: {
"water_heater": {
"name": "Water Heater",
"power": "power",
"operation_list": {
"off": {"power": "off"},

View File

@@ -5,6 +5,7 @@ from homeassistant.components.binary_sensor import BinarySensorDeviceClass
DEVICE_MAPPING = {
"default": {
"rationale": [0, 1],
"queries": [{}],
"calculate": {
"get": [
{
@@ -96,6 +97,7 @@ DEVICE_MAPPING = {
},
"61001527": {
"rationale": [0, 1],
"queries": [{}],
"calculate": {
"get": [
{