This repository was archived by the owner on Sep 15, 2024. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import mqtt , { IClientOptions } from 'mqtt' ;
1
+ import mqtt , { IClientOptions , MqttClient } from 'mqtt' ;
2
2
3
3
import { ControllerInfo } from './models' ;
4
4
import { SmartDisplayController } from './smart-display-controller' ;
@@ -12,7 +12,7 @@ import { CityWeatherOwmApp as CityWeatherOwmApp } from './apps/city-weather-owm'
12
12
import { CityWeatherHaApp as CityWeatherHaApp } from './apps/city-weather-ha' ;
13
13
14
14
export class Server {
15
- private readonly _client : mqtt . Client ;
15
+ private readonly _client : MqttClient ;
16
16
private readonly _apps : App [ ] = [ ] ;
17
17
private readonly _controller : SmartDisplayController ;
18
18
private readonly _appIterations = parseInt (
Original file line number Diff line number Diff line change 1
- import mqtt from 'mqtt' ;
1
+ import { MqttClient } from 'mqtt' ;
2
2
import Color from 'color' ;
3
3
import dayjs from 'dayjs' ;
4
4
@@ -36,7 +36,7 @@ export class SmartDisplayController {
36
36
return diffSeconds > 300 ; // more than 5 minutes old
37
37
}
38
38
39
- constructor ( private _client : mqtt . Client ) {
39
+ constructor ( private _client : MqttClient ) {
40
40
_client
41
41
. subscribe ( 'smartDisplay/client/out/#' )
42
42
. on ( 'message' , ( topic , message ) => {
You can’t perform that action at this time.
0 commit comments