Skip to content

Commit

Permalink
Fix login to Panasonic Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
bimusiek committed Mar 23, 2024
1 parent ca8ba56 commit dd04fc2
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 40 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"heatpump"
],
"dependencies": {
"axios": "^0.26.1"
"axios": "^0.26.1",
"html-entities": "^2.5.2"
},
"devDependencies": {
"@types/jest": "^29.0.3",
Expand Down
9 changes: 5 additions & 4 deletions src/api/panasonicApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('PanasonicApi', () => {
const device = await panasonicApi.loadDevice();
expect(device).toEqual( {
'selectedDeviceId': expect.anything(),
'selectedDeviceName': 'HeatPump',
'selectedDeviceName': 'Smardzow',
'deviceConf': {
'deviceGuid': expect.anything(),
'configration': [
Expand All @@ -23,10 +23,10 @@ describe('PanasonicApi', () => {
'outdoorType': 'STD',
'zoneId': 1,
'zoneType': 'Room',
'zoneName': 'Home',
'zoneName': 'House',
},
],
'a2wName': 'HeatPump',
'a2wName': 'Smardzow',
'operationMode': 'Heat',
'deviceGuid': expect.anything(),
'lastErrorNumber': '',
Expand All @@ -38,7 +38,8 @@ describe('PanasonicApi', () => {
'tank': 'Yes',
},
],
'firmVersion': '040102',
'firmVersion': '040700',
'forceHeater': 0,
},
],
},
Expand Down
Loading

0 comments on commit dd04fc2

Please sign in to comment.