Add: comment

pull/16/head
Juraj Nyíri 4 years ago
parent e93cf6172e
commit 6e2e29a9c2

@ -18745,13 +18745,13 @@ class PlayController {
};
this.playViaKodi = async (title, type) => {
const kodiData = await this.getKodiSearch(title);
// todo: check if kodiData is not empty!
if (type === 'movie') {
await this.hass.callService('kodi', 'call_method', {
// eslint-disable-next-line @typescript-eslint/camelcase
entity_id: this.entity.kodi,
method: 'Player.Open',
item: {
// eslint-disable-next-line @typescript-eslint/camelcase
movieid: kodiData.movieid
}
});

@ -69,13 +69,13 @@ class PlayController {
private playViaKodi = async (title: string, type: string): Promise<void> => {
const kodiData = await this.getKodiSearch(title);
// todo: check if kodiData is not empty!
if (type === 'movie') {
await this.hass.callService('kodi', 'call_method', {
// eslint-disable-next-line @typescript-eslint/camelcase
entity_id: this.entity.kodi,
method: 'Player.Open',
item: {
// eslint-disable-next-line @typescript-eslint/camelcase
movieid: kodiData.movieid
}
});

Loading…
Cancel
Save