core/homeassistant/components/lock
Andrew Hayworth 5ae65142b8 Allow verisure locks to be configured with a default code (#18873)
* Allow verisure locks to be configured with a default code

* linting fix

* PR feedback

* PR feedback - try harder to prevent future typos

A python mock is a magical thing, and will respond to basicaly
any method you call on it. It's somewhat better to assert against
an explicit variable named 'mock', rather than to assert on the
method name you wanted to mock... could prevent a typo from messing up
tests.

* PR feedback: convert tests to integration-style tests

Set up a fake verisure hub, stub out a _lot_ of calls, then test
after platform discovery and service calls.

It should be noted that we're overriding the `update()` calls in
these tests. This was done to prevent even further mocking of
the verisure hub's responses.

Hopefully, this'll be a foundation for people to write more tests.

* more pr feedback
2018-12-03 07:25:54 +01:00
..
__init__.py Move more MQTT platforms to config entries (#18180) 2018-11-06 16:09:46 +01:00
abode.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
august.py Set available property (#17706) 2018-10-23 14:09:08 +02:00
bmw_connected_drive.py Async syntax 5, light & lock & remote & scene & telegram & helpers (#17019) 2018-10-01 08:56:50 +02:00
demo.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
homematic.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
isy994.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
kiwi.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
lockitron.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
mqtt.py Restore states through a JSON store instead of recorder (#17270) 2018-11-28 13:16:43 +01:00
nello.py Update pynello to 2.0.2 (#18402) 2018-11-12 09:54:08 -05:00
nuki.py Async syntax 5, light & lock & remote & scene & telegram & helpers (#17019) 2018-10-01 08:56:50 +02:00
services.yaml Update services.yaml files (#10229) 2017-10-30 21:39:12 +01:00
sesame.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
template.py Add context to scripts run by template entities (#17329) 2018-10-15 11:38:49 +02:00
tesla.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
vera.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
verisure.py Allow verisure locks to be configured with a default code (#18873) 2018-12-03 07:25:54 +01:00
volvooncall.py Update of volvooncall component (#18702) 2018-11-30 19:07:42 +01:00
wink.py Async syntax 5, light & lock & remote & scene & telegram & helpers (#17019) 2018-10-01 08:56:50 +02:00
xiaomi_aqara.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
zwave.py Z-Wave Lock Config Entry Support (#18209) 2018-11-20 14:59:34 +01:00