mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-04-26 14:27:15 +00:00
Document loggers
manifest field (#1334)
This commit is contained in:
parent
ab9f007804
commit
59df487ca1
@ -17,6 +17,7 @@ Every integration has a manifest file to specify basic information about an inte
|
||||
"requirements": ["aiohue==1.9.1"],
|
||||
"quality_scale": "platinum",
|
||||
"iot_class": "local_polling"
|
||||
"loggers": ["aiohue"]
|
||||
}
|
||||
```
|
||||
|
||||
@ -95,6 +96,10 @@ Requirements are Python libraries or modules that you would normally install usi
|
||||
|
||||
Requirements is an array of strings. Each entry is a `pip` compatible string. For example, the media player Cast platform depends on the Python package PyChromecast v3.2.0: `["pychromecast==3.2.0"]`.
|
||||
|
||||
## Loggers
|
||||
|
||||
The `loggers` field is a list of names that the integration's requirements use for their [getLogger](https://docs.python.org/3/library/logging.html?highlight=logging#logging.getLogger) calls.
|
||||
|
||||
### Custom requirements during development & testing
|
||||
|
||||
During the development of a component, it can be useful to test against different versions of a requirement. This can be done in two steps, using `pychromecast` as an example:
|
||||
|
Loading…
x
Reference in New Issue
Block a user