Home Assistant Unofficial Reference 2024.12.1
__init__.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.usb.USBCallbackMatcher
 
class  homeassistant.components.usb.USBDiscovery
 
class  homeassistant.components.usb.UsbServiceInfo
 

Namespaces

 homeassistant.components.usb
 

Functions

bool homeassistant.components.usb._fnmatch_lower (str|None name, str pattern)
 
bool homeassistant.components.usb._is_matching (USBDevice device, USBMatcher|USBCallbackMatcher matcher)
 
bool homeassistant.components.usb.async_is_plugged_in (HomeAssistant hass, USBCallbackMatcher matcher)
 
CALLBACK_TYPE homeassistant.components.usb.async_register_initial_scan_callback (HomeAssistant hass, CALLBACK_TYPE callback)
 
CALLBACK_TYPE homeassistant.components.usb.async_register_scan_request_callback (HomeAssistant hass, CALLBACK_TYPE callback)
 
bool homeassistant.components.usb.async_setup (HomeAssistant hass, ConfigType config)
 
str homeassistant.components.usb.get_serial_by_id (str dev_path)
 
str homeassistant.components.usb.human_readable_device_name (str device, str|None serial_number, str|None manufacturer, str|None description, str|None vid, str|None pid)
 
None homeassistant.components.usb.websocket_usb_scan (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg)
 

Variables

list homeassistant.components.usb.__all__
 
 homeassistant.components.usb._LOGGER = logging.getLogger(__name__)
 
 homeassistant.components.usb.CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
 
int homeassistant.components.usb.REQUEST_SCAN_COOLDOWN = 60