Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.emulated_hue.hue_api.HueOneLightStateView Class Reference
Inheritance diagram for homeassistant.components.emulated_hue.hue_api.HueOneLightStateView:
[legend]
Collaboration diagram for homeassistant.components.emulated_hue.hue_api.HueOneLightStateView:
[legend]

Public Member Functions

None __init__ (self, Config config)
 
web.Response get (self, web.Request request, str username, str entity_id)
 

Public Attributes

 config
 

Static Public Attributes

string name = "emulated_hue:light:state"
 
bool requires_auth = False
 
string url = "/api/{username}/lights/{entity_id}"
 

Detailed Description

Handle requests for getting info about a single entity.

Definition at line 301 of file hue_api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.emulated_hue.hue_api.HueOneLightStateView.__init__ (   self,
Config  config 
)
Initialize the instance of the view.

Definition at line 308 of file hue_api.py.

Member Function Documentation

◆ get()

web.Response homeassistant.components.emulated_hue.hue_api.HueOneLightStateView.get (   self,
web.Request  request,
str  username,
str  entity_id 
)
Process a request to get the state of an individual light.

Definition at line 313 of file hue_api.py.

Member Data Documentation

◆ config

homeassistant.components.emulated_hue.hue_api.HueOneLightStateView.config

Definition at line 310 of file hue_api.py.

◆ name

string homeassistant.components.emulated_hue.hue_api.HueOneLightStateView.name = "emulated_hue:light:state"
static

Definition at line 305 of file hue_api.py.

◆ requires_auth

bool homeassistant.components.emulated_hue.hue_api.HueOneLightStateView.requires_auth = False
static

Definition at line 306 of file hue_api.py.

◆ url

string homeassistant.components.emulated_hue.hue_api.HueOneLightStateView.url = "/api/{username}/lights/{entity_id}"
static

Definition at line 304 of file hue_api.py.


The documentation for this class was generated from the following file: