forked from HomeAssistant/midea-meiju-codec
feat: fix lua query and download logic
This commit is contained in:
@@ -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(
|
||||
|
@@ -6,6 +6,7 @@ from homeassistant.components.switch import SwitchDeviceClass
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"rationale": [0, 1],
|
||||
"queries": [{}],
|
||||
"calculate": {
|
||||
"get": [
|
||||
{
|
||||
|
@@ -6,6 +6,7 @@ from homeassistant.components.switch import SwitchDeviceClass
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"rationale": [0, 1],
|
||||
"queries": [{}],
|
||||
"calculate": {
|
||||
"get": [
|
||||
{
|
||||
|
@@ -33,7 +33,6 @@ DEVICE_MAPPING = {
|
||||
"entities": {
|
||||
Platform.WATER_HEATER: {
|
||||
"water_heater": {
|
||||
"name": "Water Heater",
|
||||
"power": "power",
|
||||
"operation_list": {
|
||||
"off": {"power": "off"},
|
||||
|
@@ -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": [
|
||||
{
|
||||
|
Reference in New Issue
Block a user