Skip to content

Commit 01e09f6

Browse files
Cristian TorrasRiges
authored andcommitted
fix setthermmode url
1 parent c7e6683 commit 01e09f6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Netatmo.Tests/EnergyClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public async Task SetThermMode_Should_Return_Expected_Result()
279279
await sut.SetThermMode(homeId, mode);
280280

281281
httpTest
282-
.ShouldHaveCalled("https://api.netatmo.com/api/setroomthermmode")
282+
.ShouldHaveCalled("https://api.netatmo.com/api/setthermmode")
283283
.WithVerb(HttpMethod.Post)
284284
.WithOAuthBearerToken(accessToken)
285285
.WithContentType("application/json").WithRequestJson(new SetThermModeRequest {HomeId = homeId, Mode = mode})

src/Netatmo/EnergyClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task<DataResponse> SetThermMode(string homeId, string mode, Instant
5252
{
5353
return await baseUrl
5454
.ConfigureRequest(Configuration.ConfigureRequest)
55-
.AppendPathSegment("/api/setroomthermmode")
55+
.AppendPathSegment("/api/setthermmode")
5656
.WithOAuthBearerToken(credentialManager.AccessToken)
5757
.PostJsonAsync(new SetThermModeRequest
5858
{

0 commit comments

Comments
 (0)