Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

231-hot-water-accessory-migration-to-myuplink #233

Merged
merged 8 commits into from
Oct 20, 2024

Conversation

hpruszyn
Copy link
Contributor

No description provided.

@hpruszyn hpruszyn linked an issue Oct 20, 2024 that may be closed by this pull request
@@ -4,12 +4,21 @@ import {Locale} from './util/Locale';

export interface AccessoryInstance {
context: AccessoryContext
getService(type: any): ServiceInstance;
getService(type: any): ServiceInstance | undefined;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

}

export interface ServiceInstance {
updateCharacteristic(type: any, value: any): void;
addOptionalCharacteristic(type: any);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

}

export interface ServiceInstance {
updateCharacteristic(type: any, value: any): void;
addOptionalCharacteristic(type: any);
getCharacteristic(type: any): CharacteristicInstance;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

}

export interface CharacteristicInstance {
setProps(props: any): CharacteristicInstance;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.


export interface CharacteristicInstance {
setProps(props: any): CharacteristicInstance;
value: any;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

this.serviceResolver,
this.log,
{ hotWaterHeatingTemp: config.hotwaterHeatingTemp || 40 },
async (deviceId: string, paramId: string, value: any) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

@@ -201,6 +245,37 @@ export class MyUplinkApiFetcher extends EventEmitter implements DataFetcher {
}
}

public async setValue(deviceId: string, paramId: string, value: any): Promise<void> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

protected readonly serviceResolver: ServiceResolver,
protected readonly log: Logger,
protected readonly config: { hotWaterHeatingTemp: number },
protected readonly setValue: (deviceId: string, paramId: string, value: any) => Promise<void>,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

super(name, version, locale, serviceResolver, log);
}

isApplicable(data: Data): boolean {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-unused-vars> reported by reviewdog 🐶
'data' is defined but never used.

export class Cache {

private readonly store: {
[key: string]: {ttl: number, value: any};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-explicit-any> reported by reviewdog 🐶
Unexpected any. Specify a different type.

<td>hot-water (Soon)</td>
<td>Hot water temperature (40014,40008). Active (on/off) is responsible for temporary lux (48132).</td>
<td>hot-water</td>
<td>Thermostat for hot water (40014, 40008). The switch within the thermostat controls temporary lux (48132), which requires a Nibe premium subscription. Changing temporary lux through the Nibe API takes some time (20-30 seconds), so any switch adjustments won’t be immediately reflected in Nibe.</td>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
If specifying a range, consider using an en dash instead of a hyphen. (HYPHEN_TO_EN[1])
Suggestions: 20–30
URL: https://languagetool.org/insights/post/dashes/#how-to-properly-use-an-en-dash
Rule: https://community.languagetool.org/rule/show/HYPHEN_TO_EN?lang=en-US&subId=1
Category: PUNCTUATION

@hpruszyn hpruszyn merged commit 343634d into main Oct 20, 2024
4 checks passed
@hpruszyn hpruszyn deleted the 231-hot-water-accessory-migration-to-myuplink branch October 20, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hot water accessory migration to myuplink
1 participant