mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-02-11 07:15:38 +00:00
Lint fixes
This commit is contained in:
@@ -183,6 +183,7 @@ export function exposeSmarthubTools(parameters: {
|
||||
],
|
||||
);
|
||||
} catch (e) {
|
||||
log.error('Failed trying to start inclusion', e);
|
||||
ha?.publish(
|
||||
`${topicPrefix}/inclusion_exclusion_status/state`,
|
||||
'Failed trying to start inclusion.',
|
||||
@@ -254,9 +255,10 @@ export function exposeSmarthubTools(parameters: {
|
||||
qos: 2,
|
||||
});
|
||||
} catch (e) {
|
||||
log.error('Failed trying to stop inclusion/exclusion', e);
|
||||
ha?.publish(
|
||||
`${topicPrefix}/inclusion_exclusion_status/state`,
|
||||
'Failed trying to stop inclusion.',
|
||||
'Failed trying to stop inclusion/exclusion.',
|
||||
{
|
||||
retain: true,
|
||||
qos: 2,
|
||||
@@ -312,6 +314,7 @@ export function exposeSmarthubTools(parameters: {
|
||||
],
|
||||
);
|
||||
} catch (e) {
|
||||
log.error('Failed trying to start exclusion', e);
|
||||
ha?.publish(
|
||||
`${topicPrefix}/inclusion_exclusion_status/state`,
|
||||
'Failed trying to start exclusion.',
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { sendFimpMsg } from '../fimp/fimp';
|
||||
import { InclusionReport } from '../fimp/inclusion_report';
|
||||
import {
|
||||
VinculumPd7Device,
|
||||
@@ -36,7 +35,7 @@ import {
|
||||
loginToThingsplex,
|
||||
} from '../thingsplex/thingsplex';
|
||||
import { abbreviateHaMqttKeys } from './abbreviate_ha_mqtt_keys';
|
||||
import { ha, haCommandHandlers } from './globals';
|
||||
import { ha } from './globals';
|
||||
import { HaDeviceConfig } from './ha_device_config';
|
||||
import { HaMqttComponent } from './mqtt_components/_component';
|
||||
|
||||
@@ -50,10 +49,10 @@ export type CommandHandlers = {
|
||||
};
|
||||
|
||||
function ignoreService(
|
||||
topicPrefix: string,
|
||||
device: VinculumPd7Device,
|
||||
svc: VinculumPd7Service,
|
||||
svcName: string,
|
||||
_topicPrefix: string,
|
||||
_device: VinculumPd7Device,
|
||||
_svc: VinculumPd7Service,
|
||||
_svcName: string,
|
||||
): ServiceComponentsCreationResult | undefined {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user