Skip to content

Commit

Permalink
fix device_location not set
Browse files Browse the repository at this point in the history
  • Loading branch information
domcross committed Apr 29, 2019
1 parent 6cd327b commit 3490244
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,9 @@ def _find_device(self, device, allowed_types, room=""):
return best_device

# try again without filter on room
del filter_dict['room']
if 'room' in filter_dict.keys():
LOG.debug("try again without filter on room")
del filter_dict['room']
device_candidates = self.fhem.get(room=self.allowed_devices_room,
filters=filter_dict)
# LOG.debug(device_candidates)
Expand Down
6 changes: 3 additions & 3 deletions vocab/de-de/set.climate.intent
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(stelle|setze|ändere) {device} auf {temp} grad
(stelle|setze|ändere) {device} {room} auf {temp} grad
(stelle|setze|ändere) {device} temperatur auf {temp} grad
(stelle|setze|ändere) {room} temperatur auf {temp} grad
(stelle|setze|ändere) temperatur {room} auf {temp} grad
(stelle|setze|ändere) (die|) {device} temperatur auf {temp} grad
(stelle|setze|ändere) (die|) {room} temperatur auf {temp} grad
(stelle|setze|ändere) (die|) temperatur (im|in|) {room} auf {temp} grad

0 comments on commit 3490244

Please sign in to comment.