Add permission checking to all RainMachine services (#22399)
* Add permission checking to all RainMachine services * Linting * Some initial work * Owner comments * Test in place (I think) * Linting * Update conftest.py
This commit is contained in:
1 parent
50a0504e07
commit
3d8efd4200
3 files changed
+137
-21
No files matched your search
@@ -0,0 +1,23 @@
|
||||
"""Configuration for Rainmachine tests."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.rainmachine.const import DOMAIN
|
||||
from homeassistant.const import (
|
||||
CONF_IP_ADDRESS, CONF_PASSWORD, CONF_PORT, CONF_SCAN_INTERVAL, CONF_SSL)
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture(name="config_entry")
|
||||
def config_entry_fixture():
|
||||
"""Create a mock RainMachine config entry."""
|
||||
return MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
title='192.168.1.101',
|
||||
data={
|
||||
CONF_IP_ADDRESS: '192.168.1.101',
|
||||
CONF_PASSWORD: '12345',
|
||||
CONF_PORT: 8080,
|
||||
CONF_SSL: True,
|
||||
CONF_SCAN_INTERVAL: 60,
|
||||
})
|
||||
Reference in new issue
Block a user