Add TUYA_EU_URL to Tuya configuration

This commit is contained in:
faris Aljohari
2024-06-24 14:36:24 +03:00
parent cf60404e02
commit d6f846086c
7 changed files with 14 additions and 7 deletions
+3 -1
View File
@@ -37,8 +37,10 @@ export class UnitService {
) {
const accessKey = this.configService.get<string>('auth-config.ACCESS_KEY');
const secretKey = this.configService.get<string>('auth-config.SECRET_KEY');
const tuyaEuUrl = this.configService.get<string>('tuya-config.TUYA_EU_URL');
this.tuya = new TuyaContext({
baseUrl: 'https://openapi.tuyaeu.com',
baseUrl: tuyaEuUrl,
accessKey,
secretKey,
});