Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.pi_hole.switch Namespace Reference

Classes

class  PiHoleSwitch
 

Functions

None async_setup_entry (HomeAssistant hass, PiHoleConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Support for turning on and off Pi-hole system.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.pi_hole.switch.async_setup_entry ( HomeAssistant  hass,
PiHoleConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Pi-hole switch.

Definition at line 24 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.pi_hole.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 21 of file switch.py.