Skip to content

Commit

Permalink
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -326,12 +326,14 @@ class Tado {
}
});
if (overlay['fanLevel']) {
if (zone_capabilities.type == "AIR_CONDITIONING") {
if (zone_capabilities.type == 'AIR_CONDITIONING') {
if (zone_capabilities.AUTO.fanLevel !== undefined) {
overlay_config.overlay.setting.fanLevel = overlay.fanLevel.toUpperCase();
overlay_config.overlay.setting.fanLevel =
overlay.fanLevel.toUpperCase();
}
else {
overlay_config.overlay.setting.fanSpeed = overlay.fanLevel.toUpperCase();
overlay_config.overlay.setting.fanSpeed =
overlay.fanLevel.toUpperCase();
}
}
}
4 changes: 2 additions & 2 deletions build/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -359,11 +359,11 @@ export type ZoneCapabilitiesTemperatures = {
export type ZoneCapabilities = {
type: 'HEATING';
temperatures: ZoneCapabilitiesTemperatures;
} | {
} | ({
type: 'AIR_CONDITIONING';
} & {
[key in ACMode]: ZoneCapabilitiesAC;
} | {
}) | {
type: 'HOT_WATER';
};
export type AwayConfiguration = {
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-tado-client",
"version": "0.12.4",
"version": "0.13.0",
"description": "A Tado client for nodejs",
"main": "build/index.js",
"types": "build/index.d.ts",

0 comments on commit 7acc6a0

Please sign in to comment.