Add option to disable specific integrations (#16757)

* Add option to disable specific integrations

* Lint
This commit is contained in:
Paulus Schoutsen 2018-09-20 23:46:51 +02:00 committed by GitHub
parent 03de658d4d
commit 092c146eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 222 additions and 28 deletions

View file

@ -141,9 +141,9 @@ def test_write_user_info():
@asyncio.coroutine
def test_subscription_expired():
def test_subscription_expired(hass):
"""Test subscription being expired."""
cl = cloud.Cloud(None, cloud.MODE_DEV, None, None)
cl = cloud.Cloud(hass, cloud.MODE_DEV, None, None)
token_val = {
'custom:sub-exp': '2017-11-13'
}
@ -154,9 +154,9 @@ def test_subscription_expired():
@asyncio.coroutine
def test_subscription_not_expired():
def test_subscription_not_expired(hass):
"""Test subscription not being expired."""
cl = cloud.Cloud(None, cloud.MODE_DEV, None, None)
cl = cloud.Cloud(hass, cloud.MODE_DEV, None, None)
token_val = {
'custom:sub-exp': '2017-11-13'
}