Skip to content

Commit

Permalink
unescaping umlauts
Browse files Browse the repository at this point in the history
  • Loading branch information
coreGreenberet committed May 13, 2018
1 parent 9df6fd7 commit 9393b21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions tests/json_data/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F7110000000000000012",
"label": "Heizk\u00D6rperthermostat",
"label": "Heizkörperthermostat",
"lastStatusUpdate": 1524514105832,
"manufacturerCode": 1,
"modelId": 269,
Expand Down Expand Up @@ -707,7 +707,7 @@
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F7110000000000000013",
"label": "Heizk\u00D6rperthermostat",
"label": "Heizkörperthermostat",
"lastStatusUpdate": 1524514007132,
"manufacturerCode": 1,
"modelId": 269,
Expand Down Expand Up @@ -860,7 +860,7 @@
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F7110000000000000016",
"label": "Heizk\u00D6rperthermostat",
"label": "Heizkörperthermostat",
"lastStatusUpdate": 1524514626157,
"manufacturerCode": 1,
"modelId": 269,
Expand Down Expand Up @@ -1417,7 +1417,7 @@
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F711AAAA000000000002",
"label": "Temperatur- und Luftfeuchtigkeitssensor - au\u00dfen",
"label": "Temperatur- und Luftfeuchtigkeitssensor - außen",
"lastStatusUpdate": 1524513950325,
"manufacturerCode": 1,
"modelId": 314,
Expand Down Expand Up @@ -2886,7 +2886,7 @@
"inboxGroup": "00000000-0000-0000-0000-000000000044",
"lastReadyForUpdateTimestamp": 1522319489138,
"location": {
"city": "1010 Wien, \u00d6sterreich",
"city": "1010 Wien, österreich",
"latitude": "48.208088",
"longitude": "16.358608"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/test_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_heating_thermostat(fake_home):
def test_temperature_humidity_sensor_outdoor(fake_home):
d = fake_home.search_device_by_id('3014F711AAAA000000000002')
assert isinstance(d, TemperatureHumiditySensorOutdoor)
assert d.label == "Temperatur- und Luftfeuchtigkeitssensor - au\u00dfen"
assert d.label == "Temperatur- und Luftfeuchtigkeitssensor - außen"
assert d.lastStatusUpdate == datetime(2018, 4, 23, 20, 5, 50, 325000) + timedelta(0,utc_offset)
assert d.manufacturerCode == 1
assert d.modelId == 314
Expand All @@ -175,7 +175,7 @@ def test_temperature_humidity_sensor_outdoor(fake_home):
assert d.unreach == False
assert d.configPending == False
assert d.dutyCycle == False
assert str(d)== ('HmIP-STHO Temperatur- und Luftfeuchtigkeitssensor - au\u00dfen lowbat(False) unreach(False) rssiDeviceValue(-55) rssiPeerValue(None) configPending(False)'
assert str(d)== ('HmIP-STHO Temperatur- und Luftfeuchtigkeitssensor - außen lowbat(False) unreach(False) rssiDeviceValue(-55) rssiPeerValue(None) configPending(False)'
' dutyCycle(False): actualTemperature(15.1) humidity(70)')
assert d._rawJSONData == fake_home_download_configuration()["devices"]["3014F711AAAA000000000002"]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def test_home_base(fake_home: Home):
assert fake_home._rawJSONData == fake_home_download_configuration()["home"]

def test_home_location(fake_home: Home):
assert fake_home.location.city == "1010 Wien, \u00d6sterreich"
assert fake_home.location.city == "1010 Wien, österreich"
assert fake_home.location.latitude == "48.208088"
assert fake_home.location.longitude == "16.358608"
assert fake_home.location._rawJSONData == fake_home_download_configuration()["home"]["location"]
assert str(fake_home.location) == "city(1010 Wien, \u00d6sterreich) latitude(48.208088) longitude(16.358608)"
assert str(fake_home.location) == "city(1010 Wien, österreich) latitude(48.208088) longitude(16.358608)"

def test_home_weather(fake_home: Home):
assert fake_home.weather.humidity == 54
Expand Down

0 comments on commit 9393b21

Please sign in to comment.