From 7cf4172135b6ab65fa18685ccfc566d589a15932 Mon Sep 17 00:00:00 2001 From: Matt Schmitt Date: Fri, 12 Oct 2018 09:19:53 -0400 Subject: [PATCH] Add setter for temperature scale --- nest/nest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nest/nest.py b/nest/nest.py index aa515d8..248e3c1 100644 --- a/nest/nest.py +++ b/nest/nest.py @@ -514,6 +514,10 @@ def _round_temp(self, temp): def temperature_scale(self): return self._device.get('temperature_scale') + @temperature_scale.setter + def temperature_scale(self, value): + self._set('devices/thermostats', {'temperature_scale': value.upper()}) + @property def is_locked(self): return self._device.get('is_locked')