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

Public Member Functions

None __init__ (self, Config config)
 
web.Response put (self, web.Request request, str username, str entity_number)
 

Public Attributes

 config
 

Static Public Attributes

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

Detailed Description

Handle requests for setting info about entities.

Definition at line 342 of file hue_api.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 349 of file hue_api.py.

Member Function Documentation

◆ put()

web.Response homeassistant.components.emulated_hue.hue_api.HueOneLightChangeView.put (   self,
web.Request  request,
str  username,
str   entity_number 
)
Process a request to set the state of an individual light.

Definition at line 353 of file hue_api.py.

Member Data Documentation

◆ config

homeassistant.components.emulated_hue.hue_api.HueOneLightChangeView.config

Definition at line 351 of file hue_api.py.

◆ name

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

Definition at line 346 of file hue_api.py.

◆ requires_auth

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

Definition at line 347 of file hue_api.py.

◆ url

string homeassistant.components.emulated_hue.hue_api.HueOneLightChangeView.url = "/api/{username}/lights/{entity_number}/state"
static

Definition at line 345 of file hue_api.py.


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