fixing emulated hue issue and testing it (#8928)

* fixing emulated hue issue and testing it

* fixing hound issues

* I should probably stop using vim

* Check against dict directly instead of items.
This commit is contained in:
cribbstechnologies authored and Paulus Schoutsen committed 2017-08-12 08:50:02 -07:00
1 parent 489a02b2c2
commit 369caeedbd
2 files changed
+62 -1

No files matched your search

@@ -193,7 +193,9 @@ class Config(object):
if entity_id == ent_id:
return number
number = str(max(int(k) for k in self.numbers) + 1)
number = '1'
if self.numbers:
number = str(max(int(k) for k in self.numbers) + 1)
self.numbers[number] = entity_id
self._save_numbers_json()
return number