forked from eClarity/mycroft-homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show the latest snapshot of a camera connected to Home Assistant (#90)
* initial * fix URL * make "me" optional * use `override_idle` param instead of sleep * play sound if picture found, if gui connected or not * error if screen is not connected * Add czech translation * image shouldn't be optional * remove brackets * fix linter errors * fix indents * more concrete and descriptive namings * renamed handler function to be more concrete * add behave tests * fix pylint error * add workflow fixes added by @Tony763 * fix indent issues * revert change, I thought might fix pylint errors * added type annotations #90 (comment) Co-authored-by: Antonín Skala <skala.antonin@gmail.com>
- Loading branch information
Showing
7 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@allure.suite:behave | ||
Feature: camera | ||
Scenario: show image of missing entity | ||
Given an English speaking user | ||
When the user says "show me the latest picture of Albert Einstein" | ||
Then "skill-homeassistant" should not reply | ||
|
||
Scenario: show image | ||
Given an English speaking user | ||
When the user says "show me the latest picture of Mycroft camera" | ||
Then "skill-homeassistant" should reply with dialog from "homeassistant.error.no_gui" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(ukaž|zobraz) (mi|) (poslední|aktuální|) (fotku|snímek) (z|) {Entity} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
zeig (mir|) (das|ein|) (letzte|aktuelle|letztes|aktuelles|) bild von {Entity}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
show (me|) (the|a|an|) (latest|actual|) (picture|still|shot|snapshot) of {Entity}. |