mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 14:31:13 +00:00
More pylint 2 fixes (#15516)
* Pylint 2 useless-import-alias fixes * Pylint 2 chained-comparison fixes * Pylint 2 consider-using-get fixes * Pylint 2 len-as-condition fixes
This commit is contained in:
committed by
Paulus Schoutsen
parent
058081b1f5
commit
bf17ed0917
@@ -123,7 +123,7 @@ async def async_get_all_descriptions(hass):
|
||||
def domain_yaml_file(domain):
|
||||
"""Return the services.yaml location for a domain."""
|
||||
if domain == ha.DOMAIN:
|
||||
import homeassistant.components as components
|
||||
from homeassistant import components
|
||||
component_path = path.dirname(components.__file__)
|
||||
else:
|
||||
component_path = path.dirname(get_component(hass, domain).__file__)
|
||||
|
||||
Reference in New Issue
Block a user